mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-05-04 10:43:49 +01:00
7 lines
180 B
TypeScript
7 lines
180 B
TypeScript
export const sanitizeText = (text: string) => {
|
|
return text
|
|
.replace(/\"/g, '"')
|
|
.replace(/\'/g, ''')
|
|
.replace(/\</g, '<')
|
|
.replace(/\>/g, '>');
|
|
};
|