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
37 watching
353 forks
Language: JavaScript
last commit: about 2 months 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,219 |
ezyang/htmlpurifier | An HTML filtering solution that ensures documents from untrusted sources are standards compliant and safe from XSS attacks. | 3,091 |
symfony/html-sanitizer | Provides an object-oriented API to sanitize untrusted HTML input | 238 |
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 fast and secure JavaScript library for sanitizing HTML to prevent cross-site scripting (XSS) attacks | 14,025 |
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,361 |
markedjs/marked | A markdown parser and compiler built to process markdown text into HTML quickly and efficiently. | 33,189 |
gjtorikian/html-pipeline | A Ruby-based framework for transforming user content into HTML markup with chainable filters | 2,266 |
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 |
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 | 273 |
erusev/parsedown | A PHP library that provides a simple and fast way to parse Markdown text into HTML | 14,794 |
clean-css/clean-css | A fast and efficient CSS optimizer for Node.js and modern browsers | 4,166 |
mewebstudio/purifier | A Laravel package providing an HTML filter service to clean and sanitize user input | 1,882 |