Global data sanitize utility plugin cakephp 2.6
<p>I want to protect my CakePHP 2.6 website from XSS hacking. I come to know about the App::uses('Sanitize', 'Utility'); 
Sanitize::clean(); </p>

<p>I don't want write this function in my all controller since I lot of controller. Can anyone tell me the way to sanitize the data from appcontroller.php or any single point where i can write sanitize code.</p>

<p>I am sure there must be a place to validate all the fields from xss.</p>

<p>Please guide me.</p>