MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / xmlEscape

Function xmlEscape

apps/cli/src/service.ts:139–145  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

137};
138
139const xmlEscape = (value: string): string =>
140 value
141 .replaceAll("&", "&")
142 .replaceAll("<", "&lt;")
143 .replaceAll(">", "&gt;")
144 .replaceAll('"', "&quot;")
145 .replaceAll("'", "&apos;");
146
147const xmlUnescape = (value: string): string =>
148 value

Callers 2

generateLaunchdPlistFunction · 0.70
generateWindowsTaskXmlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected