MCPcopy Index your code
hub / github.com/simstudioai/sim / escapeXml

Function escapeXml

apps/sim/tools/workday/soap.ts:215–217  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

213}
214
215function escapeXml(value: string): string {
216 return value.replace(/[&<>"']/g, (c) => XML_ENTITIES[c] ?? c)
217}
218
219function serializeAttributes(attrs?: Record<string, string>): string {
220 if (!attrs) return ''

Callers 3

serializeAttributesFunction · 0.70
marshalFunction · 0.70
buildEnvelopeFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected