Fix bug in html tag escaping

This commit is contained in:
Nicolas Werner 2020-02-06 22:04:55 +01:00
parent 46a77a8c11
commit 1b039d0b16

View file

@ -387,12 +387,11 @@ utils::escapeBlacklistedHtml(const QString &rawStr)
break; break;
} }
case '>': case '>':
if (escapingTag) if (escapingTag) {
buffer.append(">"); buffer.append(">");
else {
escapingTag = false; escapingTag = false;
} else
buffer.append('>'); buffer.append('>');
}
break; break;
default: default:
buffer.append(data.at(pos)); buffer.append(data.at(pos));