1 parent
f897809202
commit
72f476a750
1 file changed
+1
-1
@@ -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