MCPcopy Index your code
hub / github.com/BrainicHQ/DoHSpeedTest / escapeHTML

Function escapeHTML

script.js:235–243  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

233}
234
235function escapeHTML(value) {
236 return String(value).replace(/[&<>"']/g, char => ({
237 '&': '&amp;',
238 '<': '&lt;',
239 '>': '&gt;',
240 '"': '&quot;',
241 "'": '&#39;'
242 })[char]);
243}
244
245// ─── State ───────────────────────────────────────────────────────────────────
246

Callers 4

countryBadgeHTMLFunction · 0.85
updateResultFunction · 0.85
reliabilityBadgeFunction · 0.85
showTopResultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected