MCPcopy Index your code
hub / github.com/QwikDev/qwik / escapeHtml

Function escapeHtml

scripts/eslint-docs.ts:13–20  ·  view source on GitHub ↗
(htmlStr: string)

Source from the content-addressed store, hash-verified

11);
12
13function escapeHtml(htmlStr: string) {
14 return htmlStr
15 .replace(/&/g, '&')
16 .replace(/</g, '&lt;')
17 .replace(/>/g, '&gt;')
18 .replace(/"/g, '&quot;')
19 .replace(/'/g, '&#39;');
20}
21
22function kebabToCamel(str: string) {
23 return str

Callers 1

eslint-docs.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…