summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <[email protected]>2018-04-05 17:50:57 -0400
committerKurt Hindenburg <[email protected]>2018-04-07 20:47:37 -0400
commitcd67c34840aff04e9252324d3e938f29babe197c (patch)
treed06670d78d3374106565bacde74165a8e83ed11c
parentb7f40e0f097e8887854b7949d8b31d5521341349 (diff)
Convert & to &amp; for HTML decoder
Differential Revision: https://phabricator.kde.org/D11956 (cherry picked from commit d93aba545b0778c2826ae9a6fcb015ead83249ce)
-rw-r--r--src/TerminalCharacterDecoder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/TerminalCharacterDecoder.cpp b/src/TerminalCharacterDecoder.cpp
index 1a9868e..4a2e2b9 100644
--- a/src/TerminalCharacterDecoder.cpp
+++ b/src/TerminalCharacterDecoder.cpp
@@ -265,6 +265,8 @@ void HTMLDecoder::decodeLine(const Character* const characters, int count, LineP
text.append(QLatin1String("&lt;"));
} else if (ch == QLatin1Char('>')) {
text.append(QLatin1String("&gt;"));
+ } else if (ch == QLatin1Char('&')) {
+ text.append(QLatin1String("&amp;"));
} else {
text.append(ch);
}