6 projects
DOMPurify
DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It removes dangerous content from HTML strings to prevent cross-site scripting (XSS) attacks while keeping safe content intact.
855
231
$638K
js-xss
A library for filtering and sanitizing HTML to prevent XSS (Cross-Site Scripting) attacks by removing potentially malicious code while preserving safe HTML elements and attributes
285
81
$181K
MarkupSafe
MarkupSafe is a Python library that implements a text object that escapes characters so it is safe to use in HTML and XML. It ensures strings are properly escaped to prevent cross-site scripting (XSS) attacks when rendering templates or generating markup.
281
139
$53K
Sanitize
Sanitize is a Ruby library for HTML sanitization that helps clean up user-submitted HTML by removing malicious or unwanted elements and attributes while preserving safe content. It provides configurable whitelist-based cleaning to protect against XSS and other injection attacks.
265
96
$123K
Sanitize URL
A JavaScript library that sanitizes URLs by removing potentially malicious content and ensuring they are properly formatted, helping prevent XSS attacks and URL manipulation in web applications
117
41
$17K
HTML Sanitizer
Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes