Skip to content

Commit

Permalink
Fixes bug 485701: Angle brackets (< and >) not escaped in HTML formul…
Browse files Browse the repository at this point in the history
…a alt text
  • Loading branch information
jcrada committed Jul 12, 2015
1 parent 23e84ea commit 08aa01c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/htmldocvisitor.cpp
Expand Up @@ -1902,6 +1902,8 @@ void HtmlDocVisitor::filterQuotedCdataAttr(const char* str)
{ {
case '&': m_t << "&amp;"; break; case '&': m_t << "&amp;"; break;
case '"': m_t << "&quot;"; 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, // For SGML compliance, and given the SGML declaration for HTML syntax,
// it's enough to replace these two, provided that the declaration // it's enough to replace these two, provided that the declaration
// for the HTML version we generate (and as supported by the browser) // for the HTML version we generate (and as supported by the browser)
Expand Down

0 comments on commit 08aa01c

Please sign in to comment.