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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| symfony/html-sanitizer | 0.85 | 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. | 279 | 281 | 12 | 3M | 0 | 32.3 | 64.4 | MIT | 1 week ago | |
| stevebauman/purify | 0.85 | 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 | |
| voku/anti-xss | 0.84 | PHP AntiXSS library to sanitize untrusted HTML and prevent XSS attacks. Cleans input by removing dangerous tags/attributes, filters CSS/JS vectors, and supports UTF-8 and common encodings. Useful for safely handling user-generated content in apps. | 705 | 723 | 116 | 237K | 20 | 14.7 | 47.5 | MIT | — | |
| typo3/html-sanitizer | 0.79 | 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?