symfony/html-sanitizer
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| webpatser/laravel-sanitize | 0.90 | — | 7 | 8 | 2 | 159 | 0 | 0.0 | 12.9 | — | — | |
| 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). | 106 | 105 | 14 | 90K | 1 | 16.8 | 44.6 | MIT | 5 months ago | |
| exercise/htmlpurifier-bundle | 0.88 | — | 277 | 280 | 56 | 251K | 2 | 17.9 | 43.4 | NOASSERTION | 8 months ago | |
| rhukster/dom-sanitizer | 0.88 | 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 | 169K | 0 | 19.1 | 62.7 | MIT | 2 months ago | |
| stevebauman/purify | 0.87 | Laravel wrapper for HTMLPurifier to sanitize user-submitted HTML and prevent XSS. Clean strings or arrays via the Purify facade, with support for per-call (dynamic) configuration and published config for app-wide rules. | 537 | 542 | 38 | 299K | 0 | 26.7 | 42.5 | MIT | 4 months ago | |
| fossar/htmlawed | 0.87 | 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 | 6K | 0 | 22.2 | 53.9 | GPL-2.0 | 1 week 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 |
How can I help you explore Laravel packages today?