MCPcopy Index your code
hub / github.com/dataease/SQLBot / escapeHTML

Function escapeHTML

frontend/public/swagger-ui-bundle.js:20242–20249  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

20240 }
20241 }
20242 function escapeHTML(s) {
20243 return s
20244 .replace(/&/g, '&')
20245 .replace(/</g, '&lt;')
20246 .replace(/>/g, '&gt;')
20247 .replace(/"/g, '&quot;')
20248 .replace(/'/g, '&#x27;')
20249 }
20250 function inherit(s, ...o) {
20251 const i = Object.create(null)
20252 for (const o in s) i[o] = s[o]

Callers 4

addTextMethod · 0.85
highlightedFunction · 0.85
attributeStringFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected