MCPcopy Index your code
hub / github.com/github/copilot-sdk / escapeXml

Function escapeXml

scripts/codegen/csharp.ts:81–83  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

79// ── C# utilities ────────────────────────────────────────────────────────────
80
81function escapeXml(text: string): string {
82 return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
83}
84
85function escapeXmlAttribute(text: string): string {
86 return escapeXml(text).replace(/"/g, "&quot;").replace(/'/g, "&apos;");

Callers 11

escapeXmlAttributeFunction · 0.85
xmlDocCommentFunction · 0.85
xmlDocElementFunction · 0.85
xmlDocNamedElementFunction · 0.85
xmlDocPropertyCommentFunction · 0.85
xmlDocEnumMemberCommentFunction · 0.85
generateDerivedClassFunction · 0.85
generateJsonUnionClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…