summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-12-19 14:40:26 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-12-19 14:40:26 (GMT)
commit553a7bf7e1b7be2f602e0230ddfc7f882b009cf8 (patch)
treea81c093353aff706ba06d25f2ffe0b5378c8d52b /src/docparser.cpp
parentc7f7c954ec1356e7f361da0d655c72ca0012a0cf (diff)
downloadDoxygen-553a7bf7e1b7be2f602e0230ddfc7f882b009cf8.zip
Doxygen-553a7bf7e1b7be2f602e0230ddfc7f882b009cf8.tar.gz
Doxygen-553a7bf7e1b7be2f602e0230ddfc7f882b009cf8.tar.bz2
Bug 738167 - Entity references in XML command attributes are incorrectly handled
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 4d77537..c356afd 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -232,7 +232,8 @@ static void docParserPopContext(bool keepParamInfo=FALSE)
//---------------------------------------------------------------------------
-// replaces { with < and } with > inside string s
+// replaces { with < and } with > and also
+// replaces &gt; with < and &gt; with > within string s
static void unescapeCRef(QCString &s)
{
char *p = s.data();
@@ -245,6 +246,9 @@ static void unescapeCRef(QCString &s)
*p++=c;
}
}
+
+ s=substitute(s,"&lt;","<");
+ s=substitute(s,"&gt;",">");
}
//---------------------------------------------------------------------------