2017 © Pedro Peláez
 

kohana-module purifier

HTMLPurifier module for Kohana

image

modulargaming/purifier

HTMLPurifier module for Kohana

  • Sunday, July 28, 2013
  • by modulargaming
  • Repository
  • 4 Watchers
  • 0 Stars
  • 122 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Purifier for Kohana

Overloads Security::xss_clean to provide secure XSS filtering using HTML Purifier., (*1)

Installing Purifier

Using Git

If your application is in a Git repository, you can simply add this repository as a submodule:, (*2)

git submodule add git://github.com/shadowhand/purifier.git modules/purifier
git submodule update --init --recursive

If you want to use a specific version, you can check out the tag of that version:, (*3)

cd modules/purifier
git checkout v0.1.0
cd -
git add modules/purifier

Always remember to commit changes you make to submodules!, (*4)

git commit -m 'Added Purifier module'

To install HTML Purifier, you will need to go into the purifier module directory and download it:, (*5)

cd modules/purifier
git submodule update --init --recursive

HTML Purifier is enabled as submodule of the Purifier module. Submodules of submodules are only automatically initialized if you use the --recursive flag, (*6)

FTP or Plain Files

For an untracked repository, you can download the repository and install it to MODPATH/purifier. To download a specific version, select the tag on Github before clicking the download link., (*7)

You will also need to download HTML Purifier and install the entire "htmlpurifier" directory to MODPATH/purifier/vendor/htmlpurifier., (*8)

After Installation

After HTML Purifier is installed, you will need to make the library/HTMLPurifier/DefinitionCache/Serializer in MODPATH/purifier/vendor/htmlpurifier writable by the web server., (*9)

Using Purifier

To use Purifier, just call Security::xss_clean as you normally would. HTML Purifier will be used instead of the default "Bitflux" filter., (*10)

Advanced Usage

If you want to access HTMLPurifier directly:, (*11)

$html = Security::htmlpurifier();

You can configure the HTMLPurifier settings by creating APPPATH/config/purifier.php:, (*12)

return array(
    'settings' => array(
        ... => ...
    ),
);

The Versions

28/07 2013

dev-3.3/master

dev-3.3/master https://github.com/modulargaming/purifier

HTMLPurifier module for Kohana

  Sources   Download

The Requires

 

kohana htmlpurifier

28/07 2013

v1.0.0

1.0.0.0 https://github.com/modulargaming/purifier

HTMLPurifier module for Kohana

  Sources   Download

The Requires

 

kohana htmlpurifier