Mason::Plugin::HTMLFilters - Filters related to HTML generation
Do a basic HTML escape on the content - just the characters '&', '>', '<', and '"'.
<input name="company" value="<% $company | H %>">
Do a comprehensive HTML escape on the content, using HTML::Entities::encode_entities.
URI-escape the content.
<a href="<% $url | U %>">
Formats a block of text into HTML paragraphs. A sequence of two or more newlines is used as the delimiter for paragraphs which are then wrapped in HTML ""<p>""...""</p>"" tags. Taken from Template::Toolkit. e.g.
<% $.HTMLPara { %> First paragraph. Second paragraph. </%>
outputs:
<p> First paragraph. </p> <p> Second paragraph. </p>
Similar to HTMLPara above, but uses the HTML tag sequence "<br><br>" to join paragraphs. Taken from Template::Toolkit. e.g.
First paragraph. <br><br> Second paragraph.
Mason
To install Mason::Plugin::HTMLFilters, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mason::Plugin::HTMLFilters
CPAN shell
perl -MCPAN -e shell install Mason::Plugin::HTMLFilters
For more information on module installation, please visit the detailed CPAN module installation guide.