sneek/laravel-xss-middleware

Simple Laravel XSS middlware to strip all tags and encode all entities from a user

1.1.0 2017-10-08 18:59 UTC

This package is not auto-updated.

Last update: 2024-12-07 03:26:14 UTC


README

A simple middleware for use in Laravel projects.

Installation

Clone the repository

composer require sneek/laravel-xss-middleware

Add to the Http kernel App\Http\Kernel

    /**
     * The application's route middleware groups.
     *
     * @var array
     */
    protected $middlewareGroups = [
        'web' => [
            ...
            \Sneek\Http\Middleware\XSSProtection::class,
        ],
    ....