mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-06 19:10:54 +01:00
Add single quote escaping just in case
This commit is contained in:
parent
d889ee9d16
commit
a4d5dda635
1 changed files with 1 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
export const sanitizeText = (text: string) => {
|
||||
return text.replace(/\"/g, '"').replace(/\</g, '<').replace(/\>/g, '>');
|
||||
return text.replace(/\"/g, '"').replace(/\'/g, ''').replace(/\</g, '<').replace(/\>/g, '>');
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue