library
8 months ago
CREDITS
1 year ago
LICENSE
1 year ago
README.md
1 year ago
VERSION
8 months ago
composer.json
8 months ago
README.md
30 lines
| 1 | HTML Purifier [](https://github.com/ezyang/htmlpurifier/actions/workflows/ci.yml](https://github.com/ezyang/htmlpurifier/actions/workflows/ci.yml](https://github.com/ezyang/htmlpurifier/actions/workflows/ci.yml) |
| 2 | ============= |
| 3 | |
| 4 | HTML Purifier is an HTML filtering solution that uses a unique combination |
| 5 | of robust whitelists and aggressive parsing to ensure that not only are |
| 6 | XSS attacks thwarted, but the resulting HTML is standards compliant. |
| 7 | |
| 8 | HTML Purifier is oriented towards richly formatted documents from |
| 9 | untrusted sources that require CSS and a full tag-set. This library can |
| 10 | be configured to accept a more restrictive set of tags, but it won't be |
| 11 | as efficient as more bare-bones parsers. It will, however, do the job |
| 12 | right, which may be more important. |
| 13 | |
| 14 | Places to go: |
| 15 | |
| 16 | * See INSTALL for a quick installation guide |
| 17 | * See docs/ for developer-oriented documentation, code examples and |
| 18 | an in-depth installation guide. |
| 19 | * See WYSIWYG for information on editors like TinyMCE and FCKeditor |
| 20 | |
| 21 | HTML Purifier can be found on the web at: [](http://htmlpurifier.org/http://htmlpurifier.org/](http://htmlpurifier.org/](http://htmlpurifier.org/) |
| 22 | |
| 23 | ## Installation |
| 24 | |
| 25 | Package available on [](https://packagist.org/packages/ezyang/htmlpurifierComposer](https://packagist.org/packages/ezyang/htmlpurifier](https://packagist.org/packages/ezyang/htmlpurifier). |
| 26 | |
| 27 | If you're using Composer to manage dependencies, you can use |
| 28 | |
| 29 | $ composer require ezyang/htmlpurifier |
| 30 |