.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Mason::Plugin::HTMLFilters 3pm" .TH Mason::Plugin::HTMLFilters 3pm "2021-01-07" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Mason::Plugin::HTMLFilters \- Filters related to HTML generation .SH "FILTERS" .IX Header "FILTERS" .IP "\s-1HTML\s0 or H" 4 .IX Item "HTML or H" Do a basic \s-1HTML\s0 escape on the content \- just the characters '&', '>', '<', and \&'"'. .Sp .Vb 1 \& .Ve .IP "HTMLEntities" 4 .IX Item "HTMLEntities" Do a comprehensive \s-1HTML\s0 escape on the content, using HTML::Entities::encode_entities. .IP "\s-1URI\s0 or U" 4 .IX Item "URI or U" URI-escape the content. .Sp .Vb 1 \& .Ve .IP "HTMLPara" 4 .IX Item "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 \&\*(L"\s0\*(R"

"\*(L"...\*(R"\*(L"

\*(R"" tags. Taken from Template::Toolkit. e.g. .Sp .Vb 2 \& % $.HTMLPara {{ \& First paragraph. \& \& Second paragraph. \& % }} .Ve .Sp outputs: .Sp .Vb 3 \&

\& First paragraph. \&

\& \&

\& Second paragraph. \&

.Ve .IP "HTMLParaBreak" 4 .IX Item "HTMLParaBreak" Similar to HTMLPara above, but uses the \s-1HTML\s0 tag sequence \*(L"

\*(R" to join paragraphs. Taken from Template::Toolkit. e.g. .Sp .Vb 2 \& % $.HTMLPara {{ \& First paragraph. \& \& Second paragraph. \& % }} .Ve .Sp outputs: .Sp .Vb 3 \& First paragraph. \&

\& Second paragraph. .Ve .ie n .IP "FillInForm ($form_data, %options)" 4 .el .IP "FillInForm ($form_data, \f(CW%options\fR)" 4 .IX Item "FillInForm ($form_data, %options)" Uses HTML::FillInForm to fill in the form with the specified \fI\f(CI$form_data\fI\fR and \fI\f(CI%options\fI\fR. .Sp .Vb 5 \& % $.FillInForm($form_data, target => \*(Aqform1\*(Aq) {{ \& ... \&
\& ... \& % }} .Ve .SH "SUPPORT" .IX Header "SUPPORT" The mailing list for Mason and Mason plugins is mason\-users@lists.sourceforge.net. You must be subscribed to send a message. To subscribe, visit . .PP You can also visit us at \f(CW\*(C`#mason\*(C'\fR on . .PP Bugs and feature requests will be tracked at \s-1RT:\s0 .PP .Vb 2 \& http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mason\-Plugin\-HTMLFilters \& bug\-mason\-plugin\-htmlfilters@rt.cpan.org .Ve .PP The latest source code can be browsed and fetched at: .PP .Vb 2 \& http://github.com/jonswar/perl\-mason\-plugin\-htmlfilters \& git clone git://github.com/jonswar/perl\-mason\-plugin\-htmlfilters.git .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" Mason