MCPcopy Create free account
hub / github.com/cppla/ServerStatus / esc

Function esc

web/js/app.js:24–24  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

22
23const $ = (id) => document.getElementById(id);
24const esc = (v) => String(v ?? '').replace(/[&<>"']/g, ch => ({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[ch]));
25const clamp = (v, min, max) => Math.max(min, Math.min(max, v));
26const num = (v) => typeof v === 'number' && Number.isFinite(v) ? v : 0;
27

Callers 14

cardFunction · 0.85
renderOsOptionsFunction · 0.85
resourceMeterFunction · 0.85
chartLegendFunction · 0.85
renderServersFunction · 0.85
renderServersCardsFunction · 0.85
monitorItemsFunction · 0.85
renderMonitorsFunction · 0.85
renderMonitorsCardsFunction · 0.85
renderSSLFunction · 0.85
renderSSLCardsFunction · 0.85
refreshDetailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected