add translator escape

This commit is contained in:
Barış Soner Uşaklı 2023-12-08 11:06:38 -05:00
parent 23d761045b
commit 253a1db840

View file

@ -456,7 +456,7 @@ define('composer', [
var data = {
topicTitle: title,
titleLength: title.length,
body: utils.escapeHTML(postData.body),
body: translator.escape(utils.escapeHTML(postData.body)),
mobile: composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm',
resizable: true,
thumb: postData.thumb,