MCPcopy Index your code
hub / github.com/codeaashu/claude-code / escapeHtml

Function escapeHtml

web/lib/search/highlighter.ts:63–70  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

61}
62
63function escapeHtml(text: string): string {
64 return text
65 .replace(/&/g, "&")
66 .replace(/</g, "&lt;")
67 .replace(/>/g, "&gt;")
68 .replace(/"/g, "&quot;")
69 .replace(/'/g, "&#039;");
70}

Callers 1

highlightFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected