From 1b039d0b167b919dfb97b1d9f466a6279c85cf01 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 6 Feb 2020 22:04:55 +0100 Subject: [PATCH] Fix bug in html tag escaping --- src/Utils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Utils.cpp b/src/Utils.cpp index 91ecfcd7..a185a207 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -387,12 +387,11 @@ utils::escapeBlacklistedHtml(const QString &rawStr) break; } case '>': - if (escapingTag) + if (escapingTag) { buffer.append(">"); - else { escapingTag = false; + } else buffer.append('>'); - } break; default: buffer.append(data.at(pos));