Extra Credit

sanitize-html

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

$npm install sanitize-html

Official docs outline

Extra Credit builds an outline of sanitize-html's docs the first time your work uses it. Until then, start at the official documentation.

All 9,484