smartsolutionsitaly / cakephp-purifier
HTML Purifier for CakePHP
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: ^7.0
- ezyang/htmlpurifier: ^4.10
Requires (Dev)
- cakephp/cakephp: ^3.6
- phpunit/phpunit: ^5.7|^6.0
This package is auto-updated.
Last update: 2024-10-29 05:17:01 UTC
README
HTML Purifier for CakePHP
Installation
You can install cakephp-purifier into your project using Composer.
composer require smartsolutionsitaly/cakephp-purifier
Setup
Insert at the bottom of your src/Application.php file the following line:
$this->addPlugin('SmartSolutionsItaly/CakePHP/Purifier');
And add or edit the method initialize in your Table classes.
public function initialize(array $config) { parent::initialize($config); $this->addBehavior('SmartSolutionsItaly/CakePHP/Purifier.Purifier'); }
License
Licensed under The MIT License For full copyright and license information, please see the LICENSE Redistributions of files must retain the above copyright notice.
Copyright
Copyright (c) 2019 Smart Solutions S.r.l. (https://smartsolutions.it)