Fix sinitizeText
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
f897809202
commit
72f476a750
1 changed files with 1 additions and 1 deletions
|
@ -124,5 +124,5 @@ export function sanitizeText(body) {
|
|||
'"': '"',
|
||||
"'": ''',
|
||||
};
|
||||
return body.replace(/[&<>]/g, (tag) => tagsToReplace[tag] || tag);
|
||||
return body.replace(/[&<>'"]/g, (tag) => tagsToReplace[tag] || tag);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue