summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authorJuan Rada-Vilela <jcrada@fuzzylite.com>2015-07-12 20:13:49 (GMT)
committerJuan Rada-Vilela <jcrada@fuzzylite.com>2015-07-12 20:14:36 (GMT)
commit08aa01cb0ee9b2dd6403f753156d8b58d8e62145 (patch)
tree7fb9726673b8eaa945335c45130c71723f4f979b /src/htmldocvisitor.cpp
parent23e84ea6a3d89e1dec704ddbb7e7a2241f984a64 (diff)
downloadDoxygen-08aa01cb0ee9b2dd6403f753156d8b58d8e62145.zip
Doxygen-08aa01cb0ee9b2dd6403f753156d8b58d8e62145.tar.gz
Doxygen-08aa01cb0ee9b2dd6403f753156d8b58d8e62145.tar.bz2
Fixes bug 485701: Angle brackets (< and >) not escaped in HTML formula alt text
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index 99d6fdd..d8913e1 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -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)