pkg.land
Beta
sanitize-html

2.16.0

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

Weekly Downloads
2.9M
Last Published

Suggestions

Sort by

dompurify

3.2.5

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

9.5M
NPMGitHub

Secure XSS Filters - Just sufficient output filtering to prevent XSS!

93.5K

xss

1.0.15

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist

2.9M

marked

15.0.8

A markdown parser built for speed

12.7M

rehype plugin to parse HTML

1.3M

Modified sanitize-html for React. Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

48.3K

Minimize HTML

30.8K

Caja's HTML Sanitizer as a Node.js module

142.3K

React component to render markdown

4.2M

Follow for updates

Keep up-to-date with new features, changelog and more

@pkgland

📦 🏝