Cherrypick Handle quotes in plain strings to 23.04

Unescape quotes in plain strings


(cherry picked from commit 925e20ebb8)
This commit is contained in:
James Graham
2023-03-22 18:12:50 +00:00
parent f8ae06f8a7
commit b7b0749cd8
2 changed files with 9 additions and 0 deletions

View File

@@ -371,6 +371,7 @@ QString TextHandler::unescapeHtml(QString stringIn)
stringIn.replace(QStringLiteral("&lt;"), QStringLiteral("<"));
stringIn.replace(QStringLiteral("&gt;"), QStringLiteral(">"));
stringIn.replace(QStringLiteral("&amp;"), QStringLiteral("&"));
stringIn.replace(QStringLiteral("&quot;"), QStringLiteral("\""));
return stringIn;
}