From d93aba545b0778c2826ae9a6fcb015ead83249ce Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" Date: Thu, 5 Apr 2018 17:50:57 -0400 Subject: [PATCH] Convert & to & for HTML decoder Differential Revision: https://phabricator.kde.org/D11956 --- src/TerminalCharacterDecoder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TerminalCharacterDecoder.cpp b/src/TerminalCharacterDecoder.cpp index 57e3aa2b..ffcb8e61 100644 --- a/src/TerminalCharacterDecoder.cpp +++ b/src/TerminalCharacterDecoder.cpp @@ -268,6 +268,8 @@ void HTMLDecoder::decodeLine(const Character* const characters, int count, LineP text.append(QLatin1String("<")); } else if (ch == QLatin1Char('>')) { text.append(QLatin1String(">")); + } else if (ch == QLatin1Char('&')) { + text.append(QLatin1String("&")); } else { text.append(ch); }