@@ -124,5 +124,5 @@ export function sanitizeText(body) {
|
|||||||
'"': '"',
|
'"': '"',
|
||||||
"'": ''',
|
"'": ''',
|
||||||
};
|
};
|
||||||
return body.replace(/[&<>]/g, (tag) => tagsToReplace[tag] || tag);
|
return body.replace(/[&<>'"]/g, (tag) => tagsToReplace[tag] || tag);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user