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.5K↓ 416M/moNov 19, 2026
Packagist · npm91Excellenthealth index

10up/safe-svgEnable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
PHP · JavaScript★ 346↓ 6,195/moNov 21, 2026
PyPI91Excellenthealth 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★ 21↓ 137.5K/moNov 25, 2026
npm87Excellenthealth index
TypeScript★ 605↓ 23.9M/moOct 24, 2026
npm86Excellenthealth index

Nano-Collective/prompt-scrubberLocal-first tool that strips emails, secrets, paths, and other identifying content out of your prompts before they reach a cloud LLM — and rehydrates the response locally.
TypeScript★ 23↓ 5,371/moOct 24, 2026
npm84Excellenthealth index
TypeScript★ 518↓ 2.6M/moNov 18, 2026
PyPI · crates.io84Excellenthealth index

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

ui-awesome/html-helperHTML helpers for PHP: attribute rendering, CSS class management, content encoding, sanitization, and template normalization.
PHP★ 1↓ 5,052/moNov 14, 2026
Packagist78Goodhealth index
PHP★ 35↓ 20K/moDec 3, 2026

flare-collection/flare-redactKeep secrets and PII out of logs, Sentry, LLM prompts and commits. Reads values, not field names. Zero dependencies.
TypeScript · JavaScript · Python★ 53↓ 36.5K/moNov 21, 2026
Packagist78Goodhealth index

ui-awesome/html-svgFluent, immutable SVG rendering for PHP: shapes, text, gradients, filters, masks, and sanitized inline SVG.
PHP★ 2↓ 3,291/moOct 23, 2026
JavaScript★ 23.7K↓ 155M/moNov 20, 2026
TypeScript★ 1↓ 32.6M/moOct 24, 2026
PyPI · npm75Goodhealth index
JavaScript · Python★ 11↓ 704.8K/moDec 4, 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↓ 13.4K/moNov 18, 2026
npm · crates.io75Goodhealth index
Rust · JavaScript★ 0↓ 122.7K/moOct 25, 2026

leizongmin/js-xssSanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
HTML · JavaScript★ 5,311↓ 34.1M/moNov 21, 2026
Packagist69Goodhealth index
PHP★ 155↓ 7,695/moDec 5, 2026
Packagist69Goodhealth 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↓ 8,324/moDec 4, 2026

macieklamberski/feedsweepTidy up the HTML content in web feeds. Fix feed-specific quirks so content displays in its best possible form.
TypeScript★ 1↓ 811/moNov 30, 2026
Packagist65Goodhealth 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↓ 1,953/moOct 23, 2026
JavaScript★ 526↓ 67M/moNov 24, 2026
npm60Moderatehealth index
TypeScript★ 593↓ 59.3M/moNov 24, 2026
npm53Moderatehealth index

nazmul-nhb/toolbox-xA versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.
TypeScript★ 1↓ 342/moOct 22, 2026
NuGet51Moderatehealth index
C#★ 5Dec 2, 2026
Packagist50Moderatehealth index
PHP★ 2↓ 5,482/moNov 30, 2026
JavaScript · TypeScript★ 558↓ 73.4M/moNov 18, 2026
JavaScript★ 42↓ 19M/moNov 24, 2026

tonioloewald/kilpiA very small HTML sanitizer for rich-text paste paths — denylist, zero dependencies, ~0.8 kB gzipped. Passes DOMPurify's published 223-fixture corpus with zero executable residue.
JavaScript · TypeScript★ 0↓ 9,485/moNov 30, 2026
TypeScript · PLSQL★ 956↓ 443.9K/moNov 16, 2026