ezyang/htmlpurifier


Standards compliant HTML filter written in PHP

http://htmlpurifier.org

License: LGPL-2.1

Language: PHP


HTML Purifier Build Status

HTML Purifier is an HTML filtering solution that uses a unique combination of robust whitelists and aggressive 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:

  • See INSTALL for a quick installation guide
  • See docs/ for developer-oriented documentation, code examples and an in-depth installation guide.
  • See WYSIWYG for information on editors like TinyMCE and FCKeditor

HTML Purifier can be found on the web at: http://htmlpurifier.org/

Installation

Package available on Composer.

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

$ composer require ezyang/htmlpurifier

Project Statistics

Sourcerank 17
Repository Size 8.33 MB
Stars 1,756
Forks 230
Watchers 67
Open issues 44
Dependencies 2
Contributors 59
Tags 60
Created
Last updated
Last pushed

Top Contributors See all

Edward Z. Yang fxbt Mateusz Turcza Marcus Bointon Xiphin Nick del Pozo Bastian Hofmann John Flatness mpyw Joe Bordes Stefano Torresi Michael Tibben Rodrigo Prado Benjamin Steininger Timothée Barray dgm Jon Dufresne Eugene Leonovich Mathias Brodala Michael Kliewe

Packages Referencing this Repo

ezyang/htmlpurifier
Standards compliant HTML filter written in PHP
Latest release v4.12.0 - Updated - 1.76K stars

Recent Tags See all

v4.12.0 October 28, 2019
v4.11.0 July 14, 2019
v4.10.0 February 23, 2018
v4.9.3 June 03, 2017
v4.9.2 March 13, 2017
v4.9.1 March 08, 2017
v4.8.0 July 16, 2016
4.8.0 July 16, 2016
v4.7.0 August 05, 2015
v4.6.0 November 30, 2013
gusev October 13, 2013
v4.5.0 February 18, 2013
v4.4.0 January 19, 2012
v4.3.0 March 27, 2011
v4.2.0 September 15, 2010

Interesting Forks See all

thebeansgroup/htmlpurifier
Standards compliant HTML filter written in PHP
PHP - LGPL-2.1 - Updated - 1 stars
moodle/custom-htmlpurifier
Customised HTMLPurifier for Moodle - snapshots from this repository are stored in lib/htmlpurifier
PHP - LGPL-2.1 - Last pushed - 1 stars
Exercise/htmlpurifier
Standards compliant HTML filter written in PHP
PHP - LGPL-2.1 - Last pushed - 1 stars
Synchro/htmlpurifier
Standards compliant HTML filter written in PHP
PHP - LGPL-2.1 - Last pushed - 1 stars
jrjohnson/htmlpurifier
Standards compliant HTML filter written in PHP
PHP - LGPL-2.1 - Last pushed - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2019-11-14 04:16:50 UTC

Login to resync this repository