symfony/html-sanitizer
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| webpatser/laravel-sanitize | 0.91 | — | 7 | 8 | 2 | 127 | 0 | 0.0 | 12.0 | — | — | |
| fossar/htmlawed | 0.91 | 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 | |
| exercise/htmlpurifier-bundle | 0.90 | — | 276 | 280 | 56 | 223K | 2 | 20.3 | 43.5 | NOASSERTION | 6 months ago | |
| rhukster/dom-sanitizer | 0.89 | 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 | |
| aimeos/sanitizer | 0.88 | Laravel package providing data sanitization helpers: clean and normalize input, strip unwanted characters/tags, and validate common formats. Useful for securing request data and preparing values for storage, APIs, and user-facing output. | 165 | 164 | 0 | 1K | 0 | 0.8 | 13.7 | LGPL-2.1 | — | |
| typo3/html-sanitizer | 0.88 | 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. | 28 | 28 | 15 | 305K | 6 | 30.4 | 66.1 | MIT | 1 month ago | |
| xemlock/htmlpurifier-html5 | 0.87 | 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 |
How can I help you explore Laravel packages today?