smartsolutionsitaly/cakephp-purifier

HTML Purifier for CakePHP


Keywords
client, cakephp, Purifier
License
MIT

Documentation

cakephp-purifier

LICENSE packagist issues CakePHP

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)