summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-12-23 15:26:44 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-12-23 15:26:44 (GMT)
commit30216574cb189a92f27bb0e701ff31aa8cce6b83 (patch)
tree81d78ec6f675bc1190158c1f31c1f20f41e9d0b1 /src/docparser.cpp
parent5e962c90d3270612df7363e7cf6bf42646c94fbe (diff)
downloadDoxygen-30216574cb189a92f27bb0e701ff31aa8cce6b83.zip
Doxygen-30216574cb189a92f27bb0e701ff31aa8cce6b83.tar.gz
Doxygen-30216574cb189a92f27bb0e701ff31aa8cce6b83.tar.bz2
Bug 738173 - Entity references in XML code command are incorrectly handled
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 24ce165..509001b 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -5163,6 +5163,10 @@ int DocPara::handleStartCode()
{
lang="."+lang;
}
+ if (g_xmlComment)
+ {
+ g_token->verb = substitute(substitute(g_token->verb,"&lt;","<"),"&gt;",">");
+ }
// search for the first non-whitespace line, index is stored in li
int i=0,li=0,l=g_token->verb.length();
while (i<l && (g_token->verb.at(i)==' ' || g_token->verb.at(i)=='\n'))