MCPcopy Create free account
hub / github.com/dev-mastery/comments-api / sanitize

Function sanitize

src/comment/index.js:24–29  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

22}
23
24function sanitize (text) {
25 // TODO: allow more coding embeds
26 return sanitizeHtml(text, {
27 allowedIframeHostnames: ['codesandbox.io', 'repl.it']
28 })
29}

Callers 1

buildMakeCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected