descriptionStandards-compliant HTML filter written in PHP
homepage URL
last changeSat, 3 Jun 2017 02:28:16 +0000 (2 22:28 -0400)
content tags

HTML Purifier Build Status

HTML Purifier is an HTML filtering solution that uses a unique combination of robust whitelists and agressive parsing to ensure that not only are XSS attacks thwarted, but the resulting HTML is standards compliant.

HTML Purifier is oriented towards richly formatted documents from untrusted sources that require CSS and a full tag-set. This library can be configured to accept a more restrictive set of tags, but it won't be as efficient as more bare-bones parsers. It will, however, do the job right, which may be more important.

Places to go:

HTML Purifier can be found on the web at:


Package available on Composer.

If you're using Composer to manage dependencies, you can use

$ composer require "ezyang/htmlpurifier": "dev-master"
2017-06-03 Edward Z. YangRelease 4.9.3masterv4.9.3
2017-06-03 Edward Z. YangMerge pull request #137 from Xiphin/master
2017-06-02 XiphinMod: using stdClass instead of stdclass
2017-06-02 XiphinMod: using null instead of false
2017-06-01 XiphinFix: It runs on PHP 7.1.* CPU process is 100%
2017-03-22 Edward Z. YangMerge pull request #130 from Izumi-kun/lexer-create-fix
2017-03-20 Viktor KhokhryakovAutoloading must be skipped while checking for php...
2017-03-13 Edward Z. YangRelease 4.9.2v4.9.2
2017-03-13 Edward Z. YangAdd tests for new entity decoding codepath.
2017-03-13 Edward Z. YangNEWS for 4.9.2
2017-03-12 Edward Z. YangMerge pull request #129 from rybakit/patch-1
2017-03-12 Eugene LeonovichFix a call to undefined function HTMLPurifier_Encoder()
2017-03-09 Edward Z. YangFix more PHP 5.3 problems.
2017-03-09 Edward Z. YangTurn on 5.3 Travis testing.
2017-03-09 Edward Z. YangFix PHP 5.3 compatibility, fixes #125.
2017-03-08 Edward Z. YangEnable PHP 7.1 testing.
8 months ago v4.9.3 HTML Purifier 4.9.3
11 months ago v4.9.2 HTML Purifier 4.9.2
11 months ago v4.9.1 HTML Purifier 4.9.1
19 months ago v4.8.0 HTML Purifier 4.8.0
19 months ago 4.8.0 HTML Purifier 4.8.0
2 years ago v4.7.0 HTML Purifier 4.7.0
4 years ago v4.6.0 HTML Purifier 4.6.0
4 years ago gusev
5 years ago v4.5.0 HTML Purifier 4.5.0
6 years ago v4.4.0 HTML Purifier 4.4.0
6 years ago v4.3.0 HTML Purifier 4.3.0
7 years ago v4.2.0 HTML Purifier 4.2.0
7 years ago v4.1.1 HTML Purifier v4.1.1
7 years ago v4.1.0 HTML Purifier v4.1.0
8 years ago v4.0.0 HTML Purifier 4.0.0
9 years ago v3.3.0 HTML Purifier 3.3.0
8 months ago master
18 months ago travis
7 years ago customize-raw
7 years ago hiphop
9 years ago objects
Cached version (107s old)
htmlpurifier/rdancer.git Lightweight fork of HTML Purifier 4 years ago
htmlpurifier/bfroehle.git HTMLPurifier with iframe extension 6 years ago