diff options
author | Juan Rada-Vilela <jcrada@fuzzylite.com> | 2015-07-24 03:24:58 (GMT) |
---|---|---|
committer | Juan Rada-Vilela <jcrada@fuzzylite.com> | 2015-07-24 03:24:58 (GMT) |
commit | 64adce8b82c332b3855cdfaaa71afc984ffc4ca9 (patch) | |
tree | 460840bbcf830a1bd74dd89b8707c83c70b5a654 | |
parent | 08aa01cb0ee9b2dd6403f753156d8b58d8e62145 (diff) | |
download | Doxygen-64adce8b82c332b3855cdfaaa71afc984ffc4ca9.zip Doxygen-64adce8b82c332b3855cdfaaa71afc984ffc4ca9.tar.gz Doxygen-64adce8b82c332b3855cdfaaa71afc984ffc4ca9.tar.bz2 |
Bug 485701: Fixes angle brackets (< and >) not escaped in HTML formula alt text
-rw-r--r-- | src/htmldocvisitor.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index d8913e1..0ce4030 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -1904,24 +1904,6 @@ void HtmlDocVisitor::filterQuotedCdataAttr(const char* str) 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) - // specifies that all the other symbols used in rawVal are - // within the right character class (i.e., they're not - // some multinational weird characters not in the BASESET). - // We assume that 1) the browser will support whatever is remaining - // in the formula and 2) the TeX formulae are generally governed - // by even stricter character restrictions so it should be enough. - // - // On some incompliant browsers, additional translation of - // '>' and '<' into ">" and "<", respectively, might be needed; - // but I'm unaware of particular modern (last 4 years) versions - // with such problems, so let's not do it for performance. - // Also, some brousers will (wrongly) not process the entity references - // inside the attribute value and show the &...; form instead, - // so we won't create entites unless necessary to minimize clutter there. - // --vassilii default: m_t << c; } } |