diff --git a/src/xlsx/helpers/xml_helpers.ts b/src/xlsx/helpers/xml_helpers.ts index 905f752fef..f04cca9a84 100644 --- a/src/xlsx/helpers/xml_helpers.ts +++ b/src/xlsx/helpers/xml_helpers.ts @@ -26,11 +26,11 @@ export function createXMLFile( function xmlEscape(str: XMLAttributeValue): string { return String(str) - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """) - .replace(/'/g, "'"); + .replace(/\&/g, "&") + .replace(/\/g, ">") + .replace(/\"/g, """) + .replace(/\'/g, "'"); } export function formatAttributes(attrs: XMLAttributes): XMLString {