MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / escapeHtml

Function escapeHtml

packages/server-e2e/src/report.ts:579–586  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

577}
578
579function escapeHtml(value: unknown): string {
580 return String(value)
581 .replaceAll('&', '&')
582 .replaceAll('<', '&lt;')
583 .replaceAll('>', '&gt;')
584 .replaceAll('"', '&quot;')
585 .replaceAll("'", '&#39;');
586}
587
588function fetchMethod(input: Parameters<typeof fetch>[0], init: Parameters<typeof fetch>[1]): string {
589 if (init?.method) return init.method.toUpperCase();

Callers 8

renderHtmlFunction · 0.70
renderCaseLinkFunction · 0.70
renderCaseFunction · 0.70
renderEventFunction · 0.70
renderDetailCaseFunction · 0.70
renderDetailCardFunction · 0.70
eventLaneContentFunction · 0.70
lifecycleLaneContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected