jeffersongoncalves/laravel-html-sanitizer
A Laravel package for sanitizing untrusted HTML before rendering. It helps remove dangerous tags and attributes to reduce XSS risks, with configurable rules for safely handling user-generated content in your applications.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| symfony/html-sanitizer | 0.88 | 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 | |
| luketowers/purifier | 0.88 | A Laravel wrapper around HTMLPurifier that brings clean, secure HTML sanitization to your application. It offers a Purifier facade, Blade directive, service provider, and publishable config so you can safely filter user-supplied HTML and prevent XSS with minimal setup. | 32 | — | 8 | — | 2 | 0.8 | — | MIT | — | |
| larahook/purifier | 0.88 | Laravel wrapper for HTMLPurifier that cleans and sanitizes untrusted HTML before it reaches your views. Filter user-generated content through a simple, configurable API to strip XSS and other malicious markup while preserving safe formatting. | 2 | 2 | 0 | 735 | 0 | 8.1 | 35.3 | MIT | 7 months ago | |
| elegantweb/sanitizer | 0.87 | Laravel package that cleans and normalizes user input before validation. Define sanitizer classes with rule sets to trim strings, cast types, strip tags, and transform request data, keeping controllers lean and application data consistent. Extensible with custom filters. | 115 | — | 15 | — | 0 | 10.1 | — | MIT | 7 months ago | |
| jeffersongoncalves/laravel-pixel | 0.87 | A lightweight Laravel package for adding tracking pixels such as Meta and Google to your app, with config-driven pixel IDs, Blade directives, and helpers for firing page views and conversion events cleanly. | 4 | 4 | 0 | 322 | 0 | 19.2 | 29.3 | MIT | 4 weeks ago | |
| webpatser/laravel-sanitize | 0.87 | — | 7 | 8 | 1 | 165 | 0 | 0.0 | 13.0 | — | — | |
| rhukster/dom-sanitizer | 0.87 | 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 | |
| waavi/sanitizer | 0.87 | Waavi Sanitizer provides a simple, flexible way to clean and transform user input in Laravel before validation. Define reusable sanitizers with built-in filters like trim, escape, cast, and custom filters to keep your data safe and consistent. | 0 | 433 | — | 718 | — | 0.0 | 39.5 | — | — | |
| arondeparon/laravel-request-sanitizer | 0.87 | Sanitize incoming request data before validation in Laravel. Define reusable sanitizers to trim, cast, or transform input—individually or in pipelines—keeping controllers and form requests clean. Integrates smoothly with Laravel's validation lifecycle. | 112 | 112 | 6 | 5K | 0 | 1.0 | 23.2 | MIT | 1 year ago | |
| stevebauman/purify | 0.86 | A Laravel wrapper for HTMLPurifier that sanitizes user input. Clean strings or arrays via Purify::clean(), define allowed HTML in the publishable config, and cache parsed definitions for performance. Supports PHP 7.4+ and Laravel 7+. | 537 | 540 | 38 | 518K | 0 | 20.4 | 43.8 | MIT | 7 months ago | |
| phlib/xss-sanitizer | 0.86 | 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 |
|
| jeffersongoncalves/laravel-clarity | 0.86 | Laravel Clarity is a lightweight package that brings Microsoft Clarity analytics to your Laravel app. Publish the config, add the tracking snippet, and start capturing session recordings, heatmaps, and click data with almost no setup. | 1 | 1 | 0 | 29 | 0 | 18.8 | 19.1 | MIT | 4 weeks ago | |
| ezyang/htmlpurifier | 0.86 | 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 | |
| tgalopin/html-sanitizer-bundle | 0.86 | 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 | |
| xemlock/htmlpurifier-html5 | 0.86 | 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 | 11.5 | 42.8 | MIT | 8 months ago | |
| typo3/html-sanitizer | 0.86 | 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 | |
| smorken/sanitizer | 0.86 | Sanitizer for Laravel and PHP applications that cleans untrusted input and output, stripping unsafe HTML and helping prevent XSS. Configurable filters make it easy to define allowed tags and attributes for safe, consistent data handling. | 0 | 0 | — | 400 | — | 0.0 | 36.0 | — | — | |
| laravel-at/laravel-image-sanitize | 0.86 | Laravel middleware that re-encodes uploaded images to strip hidden malicious payloads, reducing the risk of code execution. Requires PHP 8.3+, Laravel 12/13, and Intervention Image 4. | 345 | 346 | 24 | 5K | 0 | 23.3 | 19.3 | MIT | 2 months ago | |
| jeffersongoncalves/laravel-markdown | 0.84 | A Laravel package for working with Markdown, making it easy to render Markdown content to HTML in your applications. Simple to install and configure, it helps keep documentation, blog posts, and other text clean and readable. | 1 | — | 0 | — | 0 | 17.8 | — | MIT | 1 month ago | |
| jeffersongoncalves/laravel-hotjar | 0.84 | Integrates Hotjar tracking into Laravel applications, letting you inject the Hotjar snippet and configure your site ID from a single config file. Simple to install and works with any Blade or Livewire app. | 1 | 1 | 0 | 33 | 0 | 18.8 | 20.0 | MIT | 4 weeks ago |
How can I help you explore Laravel packages today?