MCPcopy
hub / github.com/codeaashu/claude-code / escapeXmlAttr

Function escapeXmlAttr

src/utils/xml.ts:14–16  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

12 * `<tag attr="${here}">`. Escapes quotes in addition to `& < >`.
13 */
14export function escapeXmlAttr(s: string): string {
15 return escapeXml(s).replace(/"/g, '&quot;').replace(/'/g, '&apos;')
16}
17

Callers 1

wrapChannelMessageFunction · 0.85

Calls 1

escapeXmlFunction · 0.85

Tested by

no test coverage detected