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: 4 months ago
Linked from 1 awesome list
Related projects:
Repository | Description | Stars |
---|---|---|
| A collection of CSS stylesheets providing consistent, cross-browser default styling and normalization for various HTML elements. | 5,232 |
| An HTML filtering solution that ensures documents from untrusted sources are standards compliant and safe from XSS attacks. | 3,106 |
| Provides an object-oriented API to sanitize untrusted HTML input | 241 |
| This package provides a way to filter out dangerous HTML tags and attributes from user input in ThinkJS applications. | 4 |
| A DOM-only XSS sanitizer for HTML, MathML, and SVG | 14,245 |
| 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 |
| A markdown parser and compiler built to process markdown text into HTML quickly and efficiently. | 33,416 |
| A Ruby-based framework for transforming user content into HTML markup with chainable filters | 2,267 |
| 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 |
| A library that provides HTML5 element definitions and sanitization rules for the popular HTML Purifier library | 101 |
| Sanitizes user input HTML to prevent XSS attacks. | 149 |
| A tool that sanitizes HTML to protect against cross-site scripting (XSS) attacks by parsing and filtering the input string | 274 |
| A PHP library that converts Markdown text into HTML | 14,820 |
| A fast and efficient CSS optimizer for Node.js and modern browsers | 4,174 |
| A Laravel package providing an HTML filter service to clean and sanitize user input | 1,888 |