MCPcopy
hub / github.com/nesquena/hermes-webui / esc

Function esc

static/ui.js:279–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 window._compressionLockSid=sid||null;
278}
279const esc=s=>String(s??'').replace(/[&<>"']/g,c=>({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'}[c]));
280function _matchBacktickFenceLine(line){
281 const m=String(line||'').match(/^[ ]{0,3}(`{3,})([^`]*)$/);
282 if(!m) return null;

Callers 15

_showHandoffHintFunction · 0.70
_buildSessionActionFunction · 0.70
sentContextHtmlFunction · 0.70
restoreMathFunction · 0.70
_renderUserFencedBlocksFunction · 0.70
_statusCardHtmlFunction · 0.70
_questionJumpButtonHtmlFunction · 0.70
_mediaSpeedControlsHtmlFunction · 0.70
_mediaPlayerHtmlFunction · 0.70
_renderAttachmentHtmlFunction · 0.70
renderModelDropdownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected