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

Function sanitize

src/utils/codeHighlight.js:13–16  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

11let currentThemeId = null;
12
13export function sanitize(text) {
14 if (!text) return "";
15 return DOMPurify.sanitize(text, { ALLOWED_TAGS: [] });
16}
17
18function escapeHtml(text) {
19 return text

Callers 1

addSymbolHighlightFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected