LFX Platform

Know more about LFX Platform

LFX Insights

HTML Sanitization Libraries

Libraries for sanitizing HTML, MathML, and SVG to prevent XSS and injection attacks in web applications.

6 projects

1,803 contributors

$1M

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.

Contributors

855

Organizations

231

Software value

$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

Contributors

285

Organizations

81

Software value

$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.

Contributors

281

Organizations

139

Software value

$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.

Contributors

265

Organizations

96

Software value

$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

Contributors

117

Organizations

41

Software value

$17K

HTML Sanitizer

Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes

This project hasn't been onboarded to LFX Insights.
Looking for a project that’s not listed?