Template::Plugin::HTML_NonAsc - Slightly less picky html filter.
This filter behaves like the builtin html filter except that it does not escape ASCII characters, including <, >, &, and ". This makes it possible to write templates in HTML using non-ASCII characters. Pass the contents through this filter and all non-ASCII characters will be escaped using HTML entities.
<
>
&
"
The best place to apply this filter is in your page/wrapper:
[% USE HTML_NonAsc; # for html_nonasc filter SWITCH page.type; ... CASE "html"; content | html_nonasc WRAPPER page/html + page/layout; ... CASE; THROW page.type "Invalid page type: $page.type"; END; -%]
Johan Vromans, <jv at cpan.org>
<jv at cpan.org>
Please report any bugs or feature requests to bug-template-plugin-html_nonasc at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Plugin-HTML_NonAsc. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-template-plugin-html_nonasc at rt.cpan.org
Copyright 2010 Johan Vromans, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Template::Plugin::HTML_NonAsc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::HTML_NonAsc
CPAN shell
perl -MCPAN -e shell install Template::Plugin::HTML_NonAsc
For more information on module installation, please visit the detailed CPAN module installation guide.