MCPcopy
hub / github.com/callstack/agent-device / assertSafeXmlAttributeName

Function assertSafeXmlAttributeName

src/utils/xml.ts:318–322  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

316}
317
318function assertSafeXmlAttributeName(name: string): void {
319 if (UNSAFE_XML_ATTRIBUTE_NAMES.has(name)) {
320 throw new Error(`Unsupported XML attribute name "${name}".`);
321 }
322}
323
324function decodeXmlEntities(value: string): string {
325 return value.replace(

Callers 1

readAttributeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected