DOMPurify
HTML sanitizer
A fast and secure JavaScript library for sanitizing HTML to prevent cross-site scripting (XSS) attacks
DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
14k stars
151 watching
726 forks
Language: JavaScript
last commit: 6 days ago
Linked from 6 awesome lists
cross-site-scriptingdomdompurifyhtmljavascriptmathmlprevent-xss-attackssanitizersecuritysvgxss
Related projects:
Repository | Description | Stars |
---|---|---|
leizongmin/js-xss | Sanitizes untrusted HTML to prevent cross-site scripting attacks by filtering input based on a whitelist of allowed tags and attributes. | 5,219 |
apostrophecms/sanitize-html | A JavaScript library for cleaning up and sanitizing user-submitted HTML, removing unwanted content while preserving whitelisted elements and attributes. | 3,833 |
csstools/sanitize.css | A collection of CSS stylesheets providing consistent, cross-browser default styling and normalization for various HTML elements. | 5,219 |
microcosm-cc/bluemonday | A fast and highly configurable HTML sanitizer that protects against cross-site scripting (XSS) attacks by scrubbing user-generated content against an allowlist of safe elements and attributes. | 3,216 |
necolas/normalize.css | A CSS reset that preserves useful defaults and corrects common browser inconsistencies. | 52,532 |
ezyang/htmlpurifier | An HTML filtering solution that ensures documents from untrusted sources are standards compliant and safe from XSS attacks. | 3,091 |
fb55/htmlparser2 | A fast and forgiving HTML parser with a focus on minimal allocations | 4,451 |
webreflection/hyperhtml | A lightweight virtual DOM alternative built on top of HTML template literals | 3,070 |
docsifyjs/docsify | Generates websites from Markdown files with no build process required | 27,777 |
evilstreak/markdown-js | A Markdown parser that produces well-formed HTML with intermediate representation and supports extensibility | 7,696 |
licitdev/directus-extension-sanitize-html | An extension that sanitizes user-provided HTML input data to prevent XSS attacks | 8 |
xemlock/htmlpurifier-html5 | A library that provides HTML5 element definitions and sanitization rules for the popular HTML Purifier library | 101 |
hahwul/dalfox | Automates the process of identifying vulnerabilities in web applications by scanning for cross-site scripting (XSS) flaws and analyzing parameters. | 3,763 |
sindresorhus/modern-normalize | Creates a standardized CSS style sheet for modern web browsers | 6,297 |
payloadbox/xss-payload-list | A collection of scripts and payloads designed to exploit Cross-Site Scripting (XSS) vulnerabilities in web applications. | 6,366 |