Escape html before processing text to be sent
This commit is contained in:
@@ -106,7 +106,7 @@ void ActionsHandler::postMessage(const QString &text,
|
|||||||
CustomEmojiModel *cem)
|
CustomEmojiModel *cem)
|
||||||
{
|
{
|
||||||
QString rawText = text;
|
QString rawText = text;
|
||||||
QString cleanedText = text;
|
QString cleanedText = text.toHtmlEscaped();
|
||||||
|
|
||||||
auto preprocess = [cem](const QString &it) -> QString {
|
auto preprocess = [cem](const QString &it) -> QString {
|
||||||
if (cem == nullptr) {
|
if (cem == nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user