Composer: Fix XSS in draft

This commit is contained in:
Alexander Zinchuk 2021-05-04 12:31:34 +03:00
parent e898c03d43
commit 0f242d0598

View File

@ -325,7 +325,7 @@ function renderMessagePart(
}
if (shouldRenderAsHtml) {
return renderText(content, ['emoji_html', 'br_html']);
return renderText(content, ['escape_html', 'emoji_html', 'br_html']);
}
const emojiFilter = shouldRenderHqEmoji ? 'hq_emoji' : 'emoji';