Commit 553a7bf7 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 738167 - Entity references in XML command attributes are incorrectly handled

parent c7f7c954
...@@ -232,7 +232,8 @@ static void docParserPopContext(bool keepParamInfo=FALSE) ...@@ -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) static void unescapeCRef(QCString &s)
{ {
char *p = s.data(); char *p = s.data();
...@@ -245,6 +246,9 @@ static void unescapeCRef(QCString &s) ...@@ -245,6 +246,9 @@ static void unescapeCRef(QCString &s)
*p++=c; *p++=c;
} }
} }
s=substitute(s,"&lt;","<");
s=substitute(s,"&gt;",">");
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment