n0nag0n/fatfree-xss-filter

XSS Filter to properly clean your request data from XSS related attacks.

Installs: 979

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/n0nag0n/fatfree-xss-filter

1.0.1 2021-12-02 14:05 UTC

This package is auto-updated.

Last update: 2025-10-09 23:48:30 UTC


README

XSS Filter to properly clean your request data from XSS related attacks.

Install

Use composer to get this guy up and running

composer require n0nag0n/fatfree-xss-filter

Usage

Pretty simple to use really

<?php
// public/index.php for example. Wherever your framework entrypoint is.

use n0nag0n\Xss_Filter;

$f3 = Base::instance();

// Filter the POST globals on the hive of a FatFree object
$post = Xss_Filter::filter('POST');

// define routes, services, etc.

$f3->run();


// Additionally, filter whatever you'd like in controllers and such.
// $input_from_form = Xss_Filter::filterScalar($input_from_form_raw);

Thanks

Originally created by @dabcorp and put on github with permission.