ezyang/htmlpurifier
HTML Purifier is a robust HTML filtering library that prevents XSS using strict whitelists and aggressive parsing, producing standards-compliant output. Ideal for richly formatted, untrusted HTML with configurable tag and CSS support.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| stevebauman/purify | 0.87 | Laravel wrapper for HTMLPurifier to sanitize user-submitted HTML. Clean strings or arrays via a simple facade, with support for dynamic per-call configuration, published config, and caching options to keep output safe and consistent. | 538 | 541 | 38 | 299K | 0 | 29.2 | 43.3 | MIT | 2 months ago | |
| typo3/html-sanitizer | 0.86 | 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.84 | 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 | |
| mews/purifier | 0.79 | — | 1,979 | 2,017 | 241 | 612K | 77 | 61.6 | 67.1 | MIT | 1 month ago | |
| masterminds/html5 | 0.75 | Standards-compliant HTML5 parser and serializer for PHP. Provides SAX-like event parsing, DOM tree building, namespace support, Composer install, and interoperability with QueryPath. Stable and widely used in production. | 1,781 | 1,797 | 121 | 8M | 29 | 33.6 | 63.1 | NOASSERTION | 10 months ago |
How can I help you explore Laravel packages today?