Permalink
Browse files

Fixes bug 485701: Angle brackets (< and >) not escaped in HTML formul…

…a alt text
  • Loading branch information...
jcrada committed Jul 12, 2015
1 parent 23e84ea commit 08aa01cb0ee9b2dd6403f753156d8b58d8e62145
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/htmldocvisitor.cpp
View
@@ -1902,6 +1902,8 @@ void HtmlDocVisitor::filterQuotedCdataAttr(const char* str)
{
case '&': m_t << "&amp;"; break;
case '"': m_t << "&quot;"; break;
case '<': m_t << "&lt;"; break;
case '>': m_t << "&gt;"; break;
// For SGML compliance, and given the SGML declaration for HTML syntax,
// it's enough to replace these two, provided that the declaration
// for the HTML version we generate (and as supported by the browser)

0 comments on commit 08aa01c

Please sign in to comment.