Escape html before processing text to be sent

This commit is contained in:
Tobias Fella
2021-10-16 20:45:14 +02:00
parent 1d7c20e1c7
commit a6dd5b9a57

View File

@@ -106,7 +106,7 @@ void ActionsHandler::postMessage(const QString &text,
CustomEmojiModel *cem)
{
QString rawText = text;
QString cleanedText = text;
QString cleanedText = text.toHtmlEscaped();
auto preprocess = [cem](const QString &it) -> QString {
if (cem == nullptr) {