tgalopin/html-sanitizer
tgalopin/html-sanitizer is a PHP library for cleaning untrusted HTML safely. It removes dangerous markup to prevent XSS while letting you configure allowed tags, attributes, and extensions, making it easy to display user-generated content securely.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tgalopin/html-sanitizer-bundle | 0.89 | Symfony bundle integrating the html-sanitizer library so you can define and configure HTML sanitizers as services, clean untrusted markup safely, and use customizable sanitizer profiles throughout your application. | 85 | — | 10 | — | 2 | 1.5 | 0.4 | MIT | 4 years ago | |
| phlib/xss-sanitizer | 0.83 | PHP library for sanitizing untrusted HTML and preventing XSS. It parses user-supplied markup, strips dangerous tags, attributes and URLs, and returns safe HTML for rendering in web applications. Configurable rules suit comments, rich text and other user-generated content. | 16 | — | 3 | — | 1 | 0.3 | — | LGPL-3.0 | 2 years ago |
|
| typo3/html-sanitizer | 0.82 | A standalone PHP HTML sanitization component from TYPO3, usable in any PHP project. Declarative Behavior settings define allowed tags, attributes, and values; visitors modify or remove nodes; builders combine presets into ready-to-use Sanitizer instances for safe HTML output. | 29 | 29 | 13 | 382K | 6 | 24.6 | 63.1 | MIT | 4 months ago | |
| symfony/html-sanitizer | 0.82 | Symfony's HtmlSanitizer component offers an object-oriented API to clean untrusted HTML for safe DOM insertion. Configure allowed elements, attributes, link schemes, and URL forcing to strip scripts and dangerous markup. | 284 | 283 | 13 | 4M | 0 | 36.3 | 64.9 | MIT | 1 week ago | |
| exercise/htmlpurifier-bundle | 0.82 | — | 278 | 282 | 55 | 326K | 2 | 11.9 | 42.8 | NOASSERTION | 11 months ago | |
| rhukster/dom-sanitizer | 0.81 | A fast, MIT-licensed DOM, SVG, and MathML sanitizer for PHP 7.3+. It uses PHP DOMDocument to strip dangerous tags and attributes, borrowing DOMPurify’s extensive allowlists. Configurable options and tag/attribute controls included. | 14 | 11 | 3 | 169K | 0 | 24.5 | 64.8 | MIT | 1 week ago | |
| ezyang/htmlpurifier | 0.81 | HTML Purifier is a PHP library that filters untrusted HTML using robust whitelists and aggressive parsing to prevent XSS attacks while ensuring standards-compliant output. Ideal for safely rendering rich, CSS-enabled documents from untrusted sources. | 3,348 | 3,450 | 363 | 13M | 104 | 66.3 | 82.2 | LGPL-2.1 | 1 month ago |
How can I help you explore Laravel packages today?