Catalyst::Plugin::StripScripts - XSS filter plugin
# In App.pm use Catalyst qw(StripScripts); __PACKAGE__->config({ strip_scripts => [ { Context => 'Inline', }, strict_comment => 1, strict_names => 1, ] }); # In App/Controller/YourController.pm sub index : Private { my ($self, $c) = @_; $c->strip_scripts($html); $c->forward('View::TT'); }
This module adds the ability of removing unwanted html tags from your website output. It is based on HTML::StripScripts::Parser. The configurations in App.pm will be used when you invoke strip_scripts.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Yung-chung Lin (henearkrxern@gmail.com)
To install Catalyst::Plugin::StripScripts, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::StripScripts
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::StripScripts
For more information on module installation, please visit the detailed CPAN module installation guide.