MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / escapeHtml

Function escapeHtml

src/settings/lspServerDetail.js:203–207  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

201}
202
203function escapeHtml(text) {
204 const div = document.createElement("div");
205 div.textContent = String(text || "");
206 return div.innerHTML;
207}
208
209function updateItemDisplay($list, itemsByKey, key, value, extras = {}) {
210 const item = itemsByKey.get(key);

Callers 1

callbackFunction · 0.70

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected