MCPcopy Index your code
hub / github.com/simstudioai/sim / escapeHtml

Function escapeHtml

apps/sim/app/api/mcp/oauth/callback/route.ts:28–35  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

26export const dynamic = 'force-dynamic'
27
28function escapeHtml(value: string): string {
29 return value
30 .replace(/&/g, '&')
31 .replace(/</g, '&lt;')
32 .replace(/>/g, '&gt;')
33 .replace(/"/g, '&quot;')
34 .replace(/'/g, '&#39;')
35}
36
37function jsonLiteral(value: string | undefined): string {
38 if (value === undefined) return 'undefined'

Callers 1

htmlCloseFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected