From 08aa01cb0ee9b2dd6403f753156d8b58d8e62145 Mon Sep 17 00:00:00 2001 From: Juan Rada-Vilela Date: Mon, 13 Jul 2015 08:13:49 +1200 Subject: [PATCH] Fixes bug 485701: Angle brackets (< and >) not escaped in HTML formula alt text --- src/htmldocvisitor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index 99d6fddb808..d8913e11ee3 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -1902,6 +1902,8 @@ void HtmlDocVisitor::filterQuotedCdataAttr(const char* str) { case '&': m_t << "&"; break; case '"': m_t << """; break; + case '<': m_t << "<"; break; + case '>': m_t << ">"; 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)