MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / escapeHtml

Function escapeHtml

packages/vscode-extension/extension.js:387–393  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

385}
386
387function escapeHtml(value) {
388 return value
389 .replaceAll("&", "&")
390 .replaceAll("<", "&lt;")
391 .replaceAll(">", "&gt;")
392 .replaceAll('"', "&quot;");
393}
394
395function delay(ms) {
396 return new Promise((resolve) => setTimeout(resolve, ms));

Callers 1

getWebviewHtmlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected