MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / escapeHtml

Function escapeHtml

packages/cli/src/auth/loopback.ts:207–214  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

205}
206
207function escapeHtml(s: string): string {
208 return s
209 .replace(/&/g, "&")
210 .replace(/</g, "&lt;")
211 .replace(/>/g, "&gt;")
212 .replace(/"/g, "&quot;")
213 .replace(/'/g, "&#39;");
214}

Callers 1

errorPageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected