npm98Exceptionalhealth index

cure53/DOMPurifyDOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
JavaScript · TypeScript★ 17.4K↓ 227M/moSep 16, 2026
Packagist · npm93Exceptionalhealth index

10up/safe-svgEnable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
PHP · JavaScript★ 339↓ 6,201/moSep 18, 2026
PyPI90Excellenthealth index

tox-dev/turbohtmlA fast, fully typed HTML toolkit for Python. Escape, unescape, parse, select, and serialize HTML from one library, powered by a C-accelerated core.
C · Python★ 20↓ 30.3K/moOct 1, 2026
npm88Excellenthealth index
JavaScript★ 23.7K↓ 97.7M/moSep 17, 2026
npm86Excellenthealth index
TypeScript★ 595↓ 23.1M/moAug 27, 2026
npm84Excellenthealth index
TypeScript★ 517↓ 2.1M/moSep 15, 2026
PyPI · crates.io80Excellenthealth index

raeq/disarmCanonicalize and neutralize adversarial Unicode — homoglyph/bidi/zalgo/invisibles — before it reaches your classifiers, indexes, and identifiers
Python · Rust★ 2↓ 3,007/moSep 9, 2026
Packagist80Excellenthealth index

ui-awesome/html-svgFluent, immutable SVG rendering for PHP: shapes, text, gradients, filters, masks, and sanitized inline SVG.
PHP★ 2↓ 4,546/moAug 24, 2026
Packagist78Goodhealth index
PHP★ 34↓ 2,849/moSep 5, 2026
TypeScript★ 1↓ 19.7M/moAug 27, 2026
Packagist77Goodhealth index

ui-awesome/html-helperHTML helpers for PHP: attribute rendering, CSS class management, content encoding, sanitization, and template normalization.
PHP★ 1↓ 9,677/moSep 12, 2026
npm · PyPI73Goodhealth index
JavaScript · Python★ 10↓ 126.9K/moSep 5, 2026
npm · crates.io71Goodhealth index
Rust · JavaScript★ 0↓ 11K/moSep 9, 2026

ExorTek/nosql-sanitizenosql-sanitize is a lightweight and blazing-fast suite of tools designed to prevent NoSQL Injection attacks in Node.js applications. It recursively sanitizes user-supplied data to remove characters and patterns (like $ and control characters) used in malicious MongoDB queries.
JavaScript★ 7↓ 8,516/moSep 15, 2026
Packagist67Goodhealth index

interactivetools-com/SmartArrayPHP arrays whose fields HTML-encode themselves when echoed, with chainable methods for filtering, sorting, and grouping database rows. XSS-safe by default, with SmartString's encoder behind it: at least 2.5x faster than calling htmlspecialchars() yourself.
PHP★ 0↓ 37.1K/moSep 9, 2026
TypeScript★ 591↓ 24.9M/moSep 23, 2026

flare-collection/flare-redactZero-dependency TypeScript secret and PII redaction for any SDK, logs, HTTP, LLM prompts, and scoped MCP tool boundaries.
TypeScript · JavaScript · Python★ 48↓ 5,615/moSep 18, 2026
npm63Moderatehealth index

macieklamberski/feedsweepTidy up the HTML content in web feeds. Fix feed-specific quirks so content displays in its best possible form.
TypeScript★ 1↓ 800/moOct 20, 2026
Packagist62Moderatehealth index
PHP★ 157↓ 6,385/moSep 8, 2026
Packagist62Moderatehealth index

interactivetools-com/SmartStringPHP strings that HTML-encode themselves on echo, interpolation, and concatenation. XSS-safe by default and at least 3x faster than calling htmlspecialchars() yourself.
PHP★ 0↓ 24.7K/moSep 5, 2026
npm60Moderatehealth index
JavaScript★ 525↓ 41.7M/moSep 23, 2026
npm59Moderatehealth index

leizongmin/js-xssSanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
HTML · JavaScript★ 5,311↓ 21.6M/moSep 17, 2026
npm56Moderatehealth index

nazmul-nhb/toolbox-xA versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.
TypeScript★ 1↓ 1,763/moSep 8, 2026
npm54Moderatehealth index
JavaScript★ 42↓ 10.4M/moSep 23, 2026
NuGet51Moderatehealth index
C#★ 4Oct 21, 2026
JavaScript · TypeScript★ 552↓ 53.6M/moSep 15, 2026
TypeScript · PLSQL★ 951↓ 283.9K/moSep 13, 2026