Skip to content
This repository has been archived by the owner. It is now read-only.

alisharifi01/xss-cleaner-filter-laravel

Repository files navigation

Laravel XSS FILTER

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(){
		//
}));

About

This package add an additional filter to prevent xss attack.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages