MCPcopy Create free account
hub / github.com/deta/surf / sanitizeHTML

Function sanitizeHTML

packages/web-parser/src/utils.ts:21–23  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

19}
20
21export const sanitizeHTML = (html: string) => {
22 return DOMPurify.sanitize(html, { USE_PROFILES: { html: true } })
23}
24
25export const minifyHTML = (html: string, opts?: any) => {
26 return minify(html, {

Callers 15

getPageMethod · 0.90
flattenMessagesPlainMethod · 0.90
flattenMessagesHtmlMethod · 0.90
extractThreadMethod · 0.90
normalizeMessageMethod · 0.90
getPlaylistMethod · 0.90
normalizeVideoMethod · 0.90
normalizePostMethod · 0.90
parseTweetMethod · 0.90
getTableMethod · 0.90
normalizePostMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected