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 | 165 | 0 | 0.0 | 13.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). | 106 | 106 | 15 | 92K | 1 | 14.2 | 43.7 | MIT | 7 months ago | |
| exercise/htmlpurifier-bundle | 0.88 | — | 278 | 282 | 55 | 252K | 2 | 15.8 | 42.6 | NOASSERTION | 10 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. | 12 | 11 | 4 | 169K | 0 | 24.0 | 64.7 | MIT | 1 month 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. | 538 | 541 | 38 | 376K | 0 | 24.3 | 43.1 | MIT | 6 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.1 | 53.9 | GPL-2.0 | 2 months 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 | 29 | 15 | 382K | 6 | 27.9 | 64.7 | MIT | 3 months ago |
How can I help you explore Laravel packages today?