rhukster/dom-sanitizer
MIT-licensed PHP 7.3+ DOM/SVG/MathML sanitizer using DOMDocument and DOMPurify-based allowlists. Remove dangerous tags/attributes, strip namespaces and PHP/HTML/XML tags, and optionally compress output. Supports HTML, SVG, and MathML modes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| webpatser/laravel-sanitize | 0.89 | — | 7 | 8 | 2 | 159 | 0 | 0.0 | 12.9 | — | — | |
| symfony/html-sanitizer | 0.86 | Symfony HtmlSanitizer provides an OO API to clean untrusted HTML for safe DOM insertion. Configure allowed/blocked elements and attributes, drop or keep children, force attributes, enforce HTTPS, and restrict link schemes/hosts to prevent XSS and unsafe behavior. | 281 | 281 | 13 | 3M | 0 | 35.2 | 64.5 | MIT | 3 weeks ago | |
| typo3/html-sanitizer | 0.85 | Standalone PHP HTML sanitizer from TYPO3. Define sanitization rules via Behavior, apply with Visitors, and get a ready-to-use Sanitizer via Builders/presets. Control allowed tags, attributes, and values; encode or remove invalid nodes and comments. | 29 | 28 | 15 | 320K | 6 | 31.1 | 66.3 | MIT | 1 month ago | |
| enshrined/svg-sanitize | 0.84 | PHP SVG/XML sanitizer inspired by DOMPurify. Clean untrusted SVGs with a simple sanitize() call, optional custom tag/attribute whitelists, remote reference stripping to prevent leaks, issue reporting, and output minification. Returns clean XML or false on parse errors. | 545 | 550 | 68 | 1M | 17 | 12.2 | 55.2 | GPL-2.0 | 11 months ago |
How can I help you explore Laravel packages today?