HTML::Template::Compiled::Plugin::HTML2 - Do not escape all HTML entities
version 0.03
my $template = '<%= test ESCAPE=HTML_WITHOUT_NBSP %>'; my $text = 'hello>'; my $tmpl = HTML::Template::Compiled->new( scalarref => \$template, plugin => [ 'HTML::Template::Compiled::Plugin::HTML2' ], ); $tmpl->param( test => $text ); my $output = $tmpl->output; is $output, 'hello>', '> => >'; my $template = '<%= test ESCAPE=HTML_WITHOUT_NBSP %>'; my $text = ' hello<br />'; my $tmpl = HTML::Template::Compiled->new( scalarref => \$template, plugin => [ 'HTML::Template::Compiled::Plugin::HTML2' ], ); $tmpl->param( test => $text ); my $output = $tmpl->output; is $output, ' hello<br />', 'test';
Renee Baecker <reneeb@cpan.org>
This software is Copyright (c) 2013 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install HTML::Template::Compiled::Plugin::HTML2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Template::Compiled::Plugin::HTML2
CPAN shell
perl -MCPAN -e shell install HTML::Template::Compiled::Plugin::HTML2
For more information on module installation, please visit the detailed CPAN module installation guide.