ali-sharifi/xss-cleaner-filter

This package is abandoned and no longer maintained. No replacement package was suggested.

additional laravel filter to prevent xss attack

dev-master 2015-02-26 19:41 UTC

This package is not auto-updated.

Last update: 2023-11-29 02:19:43 UTC


README

This package add an additional filter to prevent xss attack.

Installation

Require the package in composer.json:

"ali-sharifi/xss-cleaner-filter": "dev-master"

Then in your project root directory run :

	composer update

Then, include the following in the array on service providers in config/app.php:

'AliSharifi\XssCleanerFilter\XssCleanerFilterServiceProvider' ,

Usage

You can clean your input HTML code from Xss attacks using xss filter :

<?php

Route::post('/',array('before' => 'xss',function(){
		//
}));