sanitize-html
HTML sanitizer
A JavaScript library for cleaning up and sanitizing user-submitted HTML, removing unwanted content while preserving whitelisted elements and attributes.
Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance
4k stars
36 watching
353 forks
Language: JavaScript
last commit: about 1 month ago
Linked from 1 awesome list
Related projects:
Repository | Description | Stars |
---|---|---|
csstools/sanitize.css | A collection of CSS stylesheets providing consistent, cross-browser default styling and normalization for various HTML elements. | 5,232 |
ezyang/htmlpurifier | An HTML filtering solution that ensures documents from untrusted sources are standards compliant and safe from XSS attacks. | 3,106 |
symfony/html-sanitizer | Provides an object-oriented API to sanitize untrusted HTML input | 241 |
weihongyu12/think-purify | This package provides a way to filter out dangerous HTML tags and attributes from user input in ThinkJS applications. | 4 |
cure53/dompurify | A DOM-only XSS sanitizer for HTML, MathML, and SVG | 14,245 |
apostrophecms/apostrophe | A full-stack Node.js content management framework that enables organizations to create dynamic digital experiences with in-context editing and headless architecture. | 4,372 |
markedjs/marked | A markdown parser and compiler built to process markdown text into HTML quickly and efficiently. | 33,416 |
gjtorikian/html-pipeline | A Ruby-based framework for transforming user content into HTML markup with chainable filters | 2,267 |
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,241 |
xemlock/htmlpurifier-html5 | A library that provides HTML5 element definitions and sanitization rules for the popular HTML Purifier library | 101 |
marksweb/django-bleach | Sanitizes user input HTML to prevent XSS attacks. | 149 |
rrrene/html_sanitize_ex | A tool that sanitizes HTML to protect against cross-site scripting (XSS) attacks by parsing and filtering the input string | 274 |
erusev/parsedown | A PHP library that converts Markdown text into HTML | 14,820 |
clean-css/clean-css | A fast and efficient CSS optimizer for Node.js and modern browsers | 4,174 |
mewebstudio/purifier | A Laravel package providing an HTML filter service to clean and sanitize user input | 1,888 |