Registry / utility / mews-purifier

mews-purifier

JSON →
library3.4.4phppackagistunverified

Laravel 5/6/7/8/9/10 HtmlPurifier Package.

composer require mews/purifier
INSTALL
IMPORT
SIG · MEWS-PURIFIER
M
mews-purifier
utilityphpv3.4.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PurifierServiceProvider
use Mews\Purifier\PurifierServiceProvider;

Clean HTML input using HTMLPurifier in Laravel.

<?php // Add to config/app.php providers: // Mews\Purifier\PurifierServiceProvider::class // Usage: use Mews\Purifier\Facades\Purifier; $clean = Purifier::clean('<script>alert("XSS")</script><p>Safe HTML</p>'); echo $clean; // Outputs: <p>Safe HTML</p>
Debug
Known issues
gotchaHTMLPurifier can be slow on large inputs; consider caching or limiting input size.
fix
Use caching or set max length before purification.
affects: >=3.0.0
Upgrade
Version history
3.4.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
Amazon
1
Bingbot
1
Resources
mews-purifier — pip install mews-purifier · libregistry