Fix bug 49394

This commit is contained in:
Kulikova Svetlana
2021-03-31 17:52:47 +03:00
parent 056a598c08
commit 930c225129

View File

@ -1512,7 +1512,7 @@ void readStream(NSStringUtils::CStringBuilder& oXml, XmlUtils::CXmlLiteReader& o
{
std::wstring sName = oIndexHtml.GetName();
if (sName == L"#text")
oXml.WriteString(oIndexHtml.GetText());
oXml.WriteEncodeXmlString(oIndexHtml.GetText());
else if (sName == L"p")
{
if (!bWasP)
@ -1635,7 +1635,9 @@ void readStream(NSStringUtils::CStringBuilder& oXml, XmlUtils::CXmlLiteReader& o
else if (sName == L"a")
{
oIndexHtml.MoveToNextAttribute();
oXml.WriteString(L"<a l:href=\"" + oIndexHtml.GetText() + L"\">");
oXml.WriteString(L"<a l:href=\"");
oXml.WriteEncodeXmlString(oIndexHtml.GetText());
oXml.WriteString(L"\">");
oIndexHtml.MoveToElement();
readStream(oXml, oIndexHtml, arrBinary, bWasP);
oXml.WriteString(L"</a>");