fix(ti imports): correction to the xml data with incorrect symbols passed over

This commit is contained in:
2025-10-03 14:57:24 -05:00
parent 7ed29e7432
commit 356dd5a578
3 changed files with 45 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
export const escapeXml = (str: string) => {
if (!str) return "";
return str
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&apos;");
};