Hideo Kimura > Catalyst-Plugin-HTML-Scrubber-0.02 > Catalyst::Plugin::HTML::Scrubber

Download:
Catalyst-Plugin-HTML-Scrubber-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Catalyst::Plugin::HTML::Scrubber - Catalyst plugin for scrubbing/sanitizing html

SYNOPSIS ^

    use Catalyst qw[HTML::Scrubber];

    MyApp->config( 
        scrubber => [
            default => 0,
            comment => 0,
            script => 0,
            process => 0,
            allow => [qw [ br hr b a h1]],
        ],
   );

DESCRIPTION ^

On request, sanitize HTML tags in all params.

EXTENDED METHODS ^

setup

You can use options of HTML::Scrubber.

prepare_parameters

Sanitize HTML tags in all parameters.

html_scrub

Sanitize HTML tags in all parameters.

SEE ALSO ^

Catalyst, HTML::Scrubber.

AUTHOR ^

Hideo Kimura, <hide@hide-k.net<gt>

COPYRIGHT AND LICENSE ^

Copyright (C) 2005 by Hideo Kimura

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: