Registry / security / ezyang-htmlpurifier

ezyang-htmlpurifier

JSON →
library4.19.0phppackagistunverified

Standards compliant HTML filter written in PHP.

composer require ezyang/htmlpurifier
INSTALL
IMPORT
SIG · EZYANG-HTMLPURIFIE
E
ezyang-htmlpurifier
securityphpv4.19.0
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.

HTMLPurifier
use HTMLPurifier;

Purify HTML to remove malicious content.

use HTMLPurifier; $purifier = new HTMLPurifier(); $cleanHtml = $purifier->purify('<script>alert("xss")</script>');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.19.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Amazon
1
Resources
ezyang-htmlpurifier — pip install ezyang-htmlpurifier · libregistry