diff --git a/src/actionshandler.cpp b/src/actionshandler.cpp index 082e5b2bf..ae13f2e76 100644 --- a/src/actionshandler.cpp +++ b/src/actionshandler.cpp @@ -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) {