https://github.com/burzum/cakephp-html-purifier
This is a CakePHP wrapper for the HTML Purifier lib. The plugin includes a trait, a view helper, a behavior and a shell to clean your markup wherever you like, in the view or in the model layer or clean any table and field using the shell.
https://github.com/burzum/cakephp-html-purifier
cakephp cakephp-plugin cakephp-wrapper cakephp2 cakephp3 cakephp4 html-purifier purifier sanitization
Last synced: 1 day ago
JSON representation
This is a CakePHP wrapper for the HTML Purifier lib. The plugin includes a trait, a view helper, a behavior and a shell to clean your markup wherever you like, in the view or in the model layer or clean any table and field using the shell.
- Host: GitHub
- URL: https://github.com/burzum/cakephp-html-purifier
- Owner: burzum
- License: mit
- Archived: true
- Created: 2012-09-14T00:30:09.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2021-01-24T14:38:36.000Z (about 5 years ago)
- Last Synced: 2025-12-02T06:55:45.521Z (about 2 months ago)
- Topics: cakephp, cakephp-plugin, cakephp-wrapper, cakephp2, cakephp3, cakephp4, html-purifier, purifier, sanitization
- Language: PHP
- Homepage:
- Size: 930 KB
- Stars: 43
- Watchers: 7
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
CakePHP HTML Purifier Plugin
----------------------------
[](LICENSE.txt)
[](https://travis-ci.org/burzum/cakephp-html-purifier)
[](https://scrutinizer-ci.com/g/cakephp-html-purifier/)
[](https://scrutinizer.io/r/burzum/cakephp-html-purifier)
This is a CakePHP wrapper for [the HTML Purifier lib](http://htmlpurifier.org/).
HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant, something only achievable with a comprehensive knowledge of W3C's specifications.
The plugin includes a trait, a view helper, a behavior and a shell to clean your markup wherever you like, in the view or in the model layer or clean any table and field using the shell.
---
* For **CakePHP 2.x** use the 1.x version or branch.
* For **CakePHP <=3.5** use the 2.0 version or branch.
* For **CakePHP > 3.5** use the 3.0 version or branch.
Documentation
-------------
For documentation, as well as tutorials, see the [docs](docs/Home.md) directory of this repository.
Support
-------
For support and feature request, please visit the [Support Site](https://github.com/burzum/cakephp-html-purifier/issues).
Contributing to this Plugin
---------------------------
Please feel free to contribute to the plugin with new issues, requests, unit tests and code fixes or new features. If you want to contribute some code, create a feature branch from develop, and send us your pull request. Unit tests for new features and issues detected are mandatory to keep quality high.
* Contributions must follow the [PSR2 coding standard recommendation](https://github.com/php-fig-rectified/fig-rectified-standards).
* [Unit tests](https://book.cakephp.org/4/en/development/testing.html) are required.
License
-------
Copyright 2012 - 2018 Florian Krämer
Licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.