typo3/html-sanitizer
Standalone PHP HTML sanitizer from TYPO3. Define sanitizing rules via Behavior, apply multiple Visitors, and run through a Sanitizer built from reusable presets. Supports safe tag/attribute allowlists, value validation (e.g., regex), and encoding or removing invalid nodes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| webpatser/laravel-sanitize | 0.88 | — | 7 | 8 | 2 | 127 | 0 | 0.0 | 12.0 | — | — | |
| xemlock/htmlpurifier-html5 | 0.88 | HTML5 definitions and tidy/sanitization rules for HTML Purifier, aligned with the WHATWG spec. Purify and normalize dirty HTML5 into valid output with an HTML5-ready config, plus flexible directives (e.g., safely allow YouTube iframes). | 105 | 105 | 14 | 86K | 1 | 19.1 | 45.1 | MIT | 3 months ago | |
| symfony/html-sanitizer | 0.86 | Symfony HtmlSanitizer provides an object-oriented API to sanitize untrusted HTML before inserting it into the DOM. Configure allowed/blocked tags and attributes, drop or keep children, force attribute values, enforce HTTPS, and restrict link schemes/hosts to prevent XSS and unsafe behavior. | 280 | 282 | 13 | 3M | 0 | 35.3 | 65.0 | MIT | 1 week ago | |
| fossar/htmlawed | 0.85 | Fork of kesar/HTMLawed maintained by selfoss and wallabag. A single-file (~45KB) PHP HTML filter/sanitizer that secures and tidies user input, making it standards-compliant for HTML/XHTML/XML, with extensive customization options. | 2 | 2 | 2 | 8K | 0 | 2.5 | 46.6 | GPL-2.0 | 2 years ago | |
| rhukster/dom-sanitizer | 0.85 | 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. | 11 | 11 | 4 | 143K | 0 | 21.9 | 64.1 | MIT | 1 month ago |
How can I help you explore Laravel packages today?