mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix bug in html tag escaping
This commit is contained in:
parent
46a77a8c11
commit
1b039d0b16
1 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue