mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-08 06:48:42 +00:00
Standards compliant HTML filter written in PHP.
http://htmlpurifier.org
700d5bcbfc
Injector rewind: Injectors can now use the method rewind() in order to move the input index backwards, so that they can reprocess tokens (other injectors are not affected by a rewind). This functionality was necessary to implement nested node removals in %AutoFormat.RemoveEmpty. End to start ref: To facilitate rewinding, HTMLPurifier_Token_End now maintains a reference called $start to the starting token for their node. %AutoFormat.RemoveEmpty removes empty nodes. Lots of people have requested it, so here is a partially effective implementation. Because it is implemented as an Injector, it's not possible for it to handle newly introduced empty nodes by later validators, specifically auto-closing and child validation. The Injector is only meant to be used on HTML-ish languages. Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com> |
||
---|---|---|
art | ||
benchmarks | ||
configdoc | ||
docs | ||
extras | ||
library | ||
maintenance | ||
plugins | ||
smoketests | ||
tests | ||
.gitattributes | ||
.gitignore | ||
CREDITS | ||
Doxyfile | ||
FOCUS | ||
INSTALL | ||
INSTALL.fr.utf8 | ||
LICENSE | ||
NEWS | ||
package.php | ||
phpdoc.ini | ||
README | ||
release1-update.php | ||
release2-tag.php | ||
svn.php | ||
test-settings.sample.php | ||
TODO | ||
VERSION | ||
WHATSNEW | ||
WYSIWYG |
README All about HTML Purifier 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: * 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/