App\Http\Middleware\Purifying::execute PHP Method

execute() protected method

protected execute ( $input )
    protected function execute($input)
    {
        if (is_array($input) === true) {
            return array_map(function ($item) {
                return $this->execute($item);
            }, $input);
        }
        return $input != strip_tags($input) ? app('purifier')->purify($input) : $input;
    }