pkg.land
Beta
sanitize-html

2.17.0

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

Weekly Downloads
3.9M
Last Published

Suggestions

Sort by

dompurify

3.3.0

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

14.1M
NPMGitHub

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

115.9K

xss

1.0.15

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

3.5M

marked

16.4.1

A markdown parser built for speed

18.7M

rehype plugin to parse HTML

2.1M

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

26.8K

Minimize HTML

36.9K

Caja's HTML Sanitizer as a Node.js module

144.6K

React component to render markdown

7.3M

Follow for updates

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

@pkgland

📦 🏝