fix(ti imports): correction to the xml data with incorrect symbols passed over
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export const escapeXml = (str: string) => {
|
||||
if (!str) return "";
|
||||
return str
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">")
|
||||
.replace(/"/g, """)
|
||||
.replace(/'/g, "'");
|
||||
};
|
||||
Reference in New Issue
Block a user