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
4.2M
Last Published

Suggestions

Sort by

dompurify

3.3.1

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

16.8M
NPMGitHub

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

122.1K

xss

1.0.15

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

3.6M

marked

17.0.1

A markdown parser built for speed

20M

rehype plugin to parse HTML

2.3M

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

28.2K

Minimize HTML

32.8K

Caja's HTML Sanitizer as a Node.js module

179.4K

React component to render markdown

8.7M

Follow for updates

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

@pkgland

📦 🏝