(xmlString: string)
| 7 | }; |
| 8 | |
| 9 | const getCleanXmlString = (xmlString: string): string => { |
| 10 | const cleanXmlString = xmlString |
| 11 | .replace(/(\r\n|\n|\r)/gm, "") // remove line breaks |
| 12 | .replace(/>\s+</g, "><"); // remove all whitespaces between tags |
| 13 | return cleanXmlString; |
| 14 | }; |
| 15 | |
| 16 | const serializeXml = ( |
| 17 | node: ChildNode & { attributes?: NamedNodeMap } |