symfony/html-sanitizer
Object-oriented HTML sanitizer for PHP/Symfony. Safely cleans untrusted HTML for DOM insertion with configurable allow/block/drop rules, attribute policies, forced values, and URL controls (HTTPS and scheme/host allowlists). Removes scripts and unsafe behaviors.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| rhukster/dom-sanitizer | 0.89 | PHP 7.3+ DOM/SVG/MathML sanitizer using DOMDocument and DOMPurify-based allowlists. Removes dangerous tags/attributes, with options for namespace/PHP/HTML/XML stripping and output compression. Customize allowed/disallowed tags and attributes. | 11 | 11 | 4 | 148K | 0 | 23.2 | 65.0 | MIT | 1 week ago | |
| stevebauman/purify | 0.88 | Laravel wrapper for HTMLPurifier to sanitize user HTML safely. Clean strings or arrays via the Purify facade, with optional per-call configuration. Publish a config file, tune allowed tags/attributes, and leverage caching for performance. | 533 | 529 | 38 | 242K | 0 | 33.1 | 43.2 | MIT | 3 weeks ago | |
| aimeos/sanitizer | 0.87 | 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. | 112 | 106 | 0 | 1K | 0 | 0.6 | 15.6 | LGPL-2.1 | — | |
| typo3/html-sanitizer | 0.83 | Standards-based HTML sanitizer for PHP with safe, configurable cleaning of untrusted markup. Remove dangerous tags/attributes, normalize output, and allow whitelisting policies for links, images, and formatting—ideal for user content, CMS, and APIs. | 27 | 27 | 15 | 247K | 6 | 31.4 | 66.8 | MIT | 1 year ago |
How can I help you explore Laravel packages today?