From 1b039d0b167b919dfb97b1d9f466a6279c85cf01 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
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 91ecfcd78..a185a207f 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("&gt;");
-                        else {
                                 escapingTag = false;
+                        } else
                                 buffer.append('>');
-                        }
                         break;
                 default:
                         buffer.append(data.at(pos));
-- 
GitLab