FILTERS

\s-1HTML\s0 or H

Do a basic \s-1HTML\s0 escape on the content - just the characters '&', '>', '<', and '"'.

    <input name="company" value="<% $company | H %>">
HTMLEntities

Do a comprehensive \s-1HTML\s0 escape on the content, using HTML::Entities::encode_entities.

\s-1URI\s0 or U

URI-escape the content. <a href="<% $url | U %>">

HTMLPara

Formats a block of text into \s-1HTML\s0 paragraphs. A sequence of two or more newlines is used as the delimiter for paragraphs which are then wrapped in \s-1HTML\s0 "\*(L"<p>\*(R"\*(L"...\*(R"\*(L"</p>\*(R"" tags. Taken from Template::Toolkit. e.g. % $.HTMLPara {{ First paragraph.

Second paragraph. % }} outputs: <p> First paragraph. </p>

<p> Second paragraph. </p>

HTMLParaBreak

Similar to HTMLPara above, but uses the \s-1HTML\s0 tag sequence \*(L"<br><br>\*(R" to join paragraphs. Taken from Template::Toolkit. e.g. % $.HTMLPara {{ First paragraph.

Second paragraph. % }} outputs: First paragraph. <br><br> Second paragraph. Uses HTML::FillInForm to fill in the form with the specified $form_data and %options. % $.FillInForm($form_data, target => 'form1') {{ ... <form name='form1'> ... % }}

SUPPORT

The mailing list for Mason and Mason plugins is [email protected]. You must be subscribed to send a message. To subscribe, visit https://lists.sourceforge.net/lists/listinfo/mason-users <https://lists.sourceforge.net/lists/listinfo/mason-users>.

You can also visit us at \*(C`#mason\*(C' on <irc://irc.perl.org/#mason>.

Bugs and feature requests will be tracked at \s-1RT:\s0

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mason-Plugin-HTMLFilters [email protected]

The latest source code can be browsed and fetched at:

http://github.com/jonswar/perl-mason-plugin-htmlfilters git clone git://github.com/jonswar/perl-mason-plugin-htmlfilters.git

RELATED TO Mason::Plugin::HTMLFilters…

Mason