Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function sanitizeAllTags(html: string): string {
return sanitize(html, {
allowedTags: []
})
}
export function sanitizeCommonTags(html: string): string {
return sanitize(html, {
allowedTags: ['p', 'b', 'i', 'em', 'strong', 'a', 'br', 'blockquote', 'h2', 'h3']
})
}