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:
Václav Slavík
2004-06-30 10:21:47 +00:00
parent 110da5b02e
commit 4d5881b12d

View File

@@ -295,9 +295,11 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE")
wxHtmlWindow *wfr = (wxHtmlWindow*)(m_WParser->GetWindow());
if (wfr)
{
const wxString& src = *m_WParser->GetSource();
wfr->OnSetTitle(src.Mid(tag.GetBeginPos(),
tag.GetEndPos1()-tag.GetBeginPos()));
wxString title = m_WParser->GetSource()->Mid(
tag.GetBeginPos(),
tag.GetEndPos1()-tag.GetBeginPos());
title = m_WParser->GetEntitiesParser()->Parse(title);
wfr->OnSetTitle(title);
}
}
return TRUE;