MCPcopy Create free account
hub / github.com/TanStack/hotkeys / escapeHtml

Function escapeHtml

examples/vanilla/formatForDisplay/src/main.ts:125–131  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

123}
124
125function escapeHtml(s: string): string {
126 return s
127 .replace(/&/g, '&')
128 .replace(/</g, '&lt;')
129 .replace(/>/g, '&gt;')
130 .replace(/"/g, '&quot;')
131}
132
133const app = document.getElementById('app')
134if (app) mount(app)

Callers 1

renderRowsFunction · 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…