MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / esc

Function esc

app/src/modules/utils.js:6–6  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

4export const $ = id => document.getElementById(id);
5
6export function esc(s) { const d = document.createElement('div'); d.textContent = s; return d.innerHTML; }
7export function trunc(s, n) { return (!s || s.length <= n) ? s : s.substring(0, n) + '...'; }
8export function stripImageTags(s) { return (s || '').replace(/\[Image:\s*source:\s*[^\]]*\]/g, '').trim(); }
9

Callers 13

sendFunction · 0.90
renderSessionListFunction · 0.90
renderTodoPanelFunction · 0.90
renderCurrentQuestionFunction · 0.90
showPlanApprovalFunction · 0.90
buildDirItemFunction · 0.90
renderHubCardsFunction · 0.90
renderMdFunction · 0.90
renderDiffOpsFunction · 0.90
renderUserFunction · 0.90
renderCostCardFunction · 0.90
renderThinkingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected