fixed HTML entities parsing inside <titl
e> tag git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -295,9 +295,11 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE")
|
|||||||
wxHtmlWindow *wfr = (wxHtmlWindow*)(m_WParser->GetWindow());
|
wxHtmlWindow *wfr = (wxHtmlWindow*)(m_WParser->GetWindow());
|
||||||
if (wfr)
|
if (wfr)
|
||||||
{
|
{
|
||||||
const wxString& src = *m_WParser->GetSource();
|
wxString title = m_WParser->GetSource()->Mid(
|
||||||
wfr->OnSetTitle(src.Mid(tag.GetBeginPos(),
|
tag.GetBeginPos(),
|
||||||
tag.GetEndPos1()-tag.GetBeginPos()));
|
tag.GetEndPos1()-tag.GetBeginPos());
|
||||||
|
title = m_WParser->GetEntitiesParser()->Parse(title);
|
||||||
|
wfr->OnSetTitle(title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user