MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / getCleanXmlString

Function getCleanXmlString

app/utilities/xml/convertFromRawXml.ts:9–14  ·  view source on GitHub ↗
(xmlString: string)

Source from the content-addressed store, hash-verified

7};
8
9const 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
16const serializeXml = (
17 node: ChildNode & { attributes?: NamedNodeMap }

Callers 1

convertFromRawXmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected