yuhao ee733686b2 金控管理系统 | 1 year ago | |
---|---|---|
.. | ||
extras | 1 year ago | |
library | 1 year ago | |
maintenance | 1 year ago | |
plugins | 1 year ago | |
tests | 1 year ago | |
CREDITS | 1 year ago | |
INSTALL | 1 year ago | |
INSTALL.fr.utf8 | 1 year ago | |
LICENSE | 1 year ago | |
NEWS | 1 year ago | |
README.md | 1 year ago | |
TODO | 1 year ago | |
VERSION | 1 year ago | |
WHATSNEW | 1 year ago | |
WYSIWYG | 1 year ago | |
composer.json | 1 year ago | |
package.php | 1 year ago | |
phpdoc.ini | 1 year ago | |
release1-update.php | 1 year ago | |
release2-tag.php | 1 year ago | |
test-settings.sample.php | 1 year ago | |
test-settings.travis.php | 1 year ago |
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:
HTML Purifier can be found on the web at: http://htmlpurifier.org/
Package available on Composer.
If you're using Composer to manage dependencies, you can use
$ composer require "ezyang/htmlpurifier":"dev-master"