2017 © Pedro Peláez
 

library stauros

A fast XSS cleaner for PHP

image

ircmaxell/stauros

A fast XSS cleaner for PHP

  • Wednesday, September 7, 2016
  • by ircmaxell
  • Repository
  • 20 Watchers
  • 116 Stars
  • 1,642 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 10 Forks
  • 2 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

Stauros

Build Status, (*1)

A fast XSS sanitation library for PHP., (*2)

IMPORTANT

THIS IS AN EXPERIMENTAL LIBRARY, USE AT YOUR OWN RISK

How to use it

With the default settings, simply call Stauros->scanHTML():, (*3)

$stauros = new Stauros;
$clean = $stauros->scanHTML($dirty);

Easy as that, (*4)

Working with streams

Stauros supports streaming content as well. You can use a stream as input, getting a string as output:, (*5)

$clean = $stauros->scanHTMLStreamToString($stream);

Or you can use it as a stream to stream process:, (*6)

$stauros->scanHTMLStreamToStream($input, $output);

Advanced Usage

The configuration class (Stauros\HTML\Config) allows you to specify html tag whitelists, as well as attribute whitelist and implement an attribute callback for further customization., (*7)

The Versions

07/09 2016

dev-master

9999999-dev

A fast XSS cleaner for PHP

  Sources   Download

MIT

The Requires

  • php-64bit >=5.5

 

The Development Requires