How to use sanitize-html.defaults:
GitHub: FormPress/FormPress
1615 1616 1617 1618 1619 1620 1621 1622 1623 1624
success: false }) } const cleanHtml = sanitizeHtml(html, { allowedTags: sanitizeHtml.defaults.allowedTags.concat([ 'img', 'ellipse', 'svg', 'path',