oito/php-micro-plugin-html-purifier

HTML Purifier plugin for Oito PHP Microframework

v1.0.0 2014-03-01 18:09 UTC

README

Uses the libraries

About

This plugin enables you to use the HTML Purifier library to filter against XSS.

Usage

<?php

$app = new \Oito\Micro\Application();

// the plugin will be available as: "purifier"
$app->addPlugin(new \Oito\Micro\Plugin\Purifier());

$app->purifier->purify('...');