MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / escapeXmlText

Function escapeXmlText

packages/server/src/svc/schtasks-xml.ts:3–9  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1
2
3const escapeXmlText = (value: string): string =>
4 value
5 .replaceAll('&', '&')
6 .replaceAll('<', '&lt;')
7 .replaceAll('>', '&gt;')
8 .replaceAll('"', '&quot;')
9 .replaceAll("'", '&apos;');
10
11export interface BuildScheduledTaskXmlInput {
12 description: string;

Callers 1

buildScheduledTaskXmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected