Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
14
export
function
escapeXmlAttr(s: string): string {
15
return
escapeXml(s).replace(/"/g,
'"'
).replace(/
'/g, '
'')
16
}
17
Callers
1
wrapChannelMessage
Function · 0.85
Calls
1
escapeXml
Function · 0.85
Tested by
no test coverage detected