Skip to content

Commit 3c5fb48

Browse files
committed
issue doxygen#12092 Regression in the parsing of titles of custom navbar tabs
There should be the `&lt;` and `&gt;` in the output file, but it looks like that the `std::ostream` replaces these again with `<` and `>` so best is to escape the `&` as well again (so it will be `&amp;lt;` and `&amp;gt;` to the `std::ostream` resulting in the required text in the javascript file).
1 parent a968c6f commit 3c5fb48

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/util.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4052,6 +4052,10 @@ QCString convertToJSString(const QCString &s,bool keepEntities,bool singleQuotes
40524052
{
40534053
switch (c)
40544054
{
4055+
case '<': result+="&amp;lt;";
4056+
break;
4057+
case '>': result+="&amp;gt;";
4058+
break;
40554059
case '"': if (!singleQuotes) result+="\\\""; else result+=c;
40564060
break;
40574061
case '\'': if (singleQuotes) result+="\\\'"; else result+=c;

0 commit comments

Comments
 (0)