Fix sinitizeText

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-11-23 12:30:40 +05:30
parent f897809202
commit 72f476a750

View file

@ -124,5 +124,5 @@ export function sanitizeText(body) {
'"': '&quot;',
"'": '&#39;',
};
return body.replace(/[&<>]/g, (tag) => tagsToReplace[tag] || tag);
return body.replace(/[&<>'"]/g, (tag) => tagsToReplace[tag] || tag);
}