| 1 |
NAME |
| 2 |
Mason::Plugin::HTMLFilters - Filters related to HTML generation |
| 3 |
|
| 4 |
FILTERS |
| 5 |
HTML or H |
| 6 |
Do a basic HTML escape on the content - just the characters '&', |
| 7 |
'>', '<', and '"'. |
| 8 |
|
| 9 |
<input name="company" value="<% $company | H %>"> |
| 10 |
|
| 11 |
HTMLEntities |
| 12 |
Do a comprehensive HTML escape on the content, using |
| 13 |
HTML::Entities::encode_entities. |
| 14 |
|
| 15 |
URI or U |
| 16 |
URI-escape the content. |
| 17 |
|
| 18 |
<a href="<% $url | U %>"> |
| 19 |
|
| 20 |
HTMLPara |
| 21 |
Formats a block of text into HTML paragraphs. A sequence of two or |
| 22 |
more newlines is used as the delimiter for paragraphs which are then |
| 23 |
wrapped in HTML ""<p>""...""</p>"" tags. Taken from |
| 24 |
Template::Toolkit. e.g. |
| 25 |
|
| 26 |
% $.HTMLPara {{ |
| 27 |
First paragraph. |
| 28 |
|
| 29 |
Second paragraph. |
| 30 |
% }} |
| 31 |
|
| 32 |
outputs: |
| 33 |
|
| 34 |
<p> |
| 35 |
First paragraph. |
| 36 |
</p> |
| 37 |
|
| 38 |
<p> |
| 39 |
Second paragraph. |
| 40 |
</p> |
| 41 |
|
| 42 |
HTMLParaBreak |
| 43 |
Similar to HTMLPara above, but uses the HTML tag sequence "<br><br>" |
| 44 |
to join paragraphs. Taken from Template::Toolkit. e.g. |
| 45 |
|
| 46 |
% $.HTMLPara {{ |
| 47 |
First paragraph. |
| 48 |
|
| 49 |
Second paragraph. |
| 50 |
% }} |
| 51 |
|
| 52 |
outputs: |
| 53 |
|
| 54 |
First paragraph. |
| 55 |
<br><br> |
| 56 |
Second paragraph. |
| 57 |
|
| 58 |
FillInForm ($form_data, %options) |
| 59 |
Uses HTML::FillInForm to fill in the form with the specified |
| 60 |
*$form_data* and *%options*. |
| 61 |
|
| 62 |
% $.FillInForm($form_data, target => 'form1') {{ |
| 63 |
... |
| 64 |
<form name='form1'> |
| 65 |
... |
| 66 |
% }} |
| 67 |
|
| 68 |
SUPPORT |
| 69 |
The mailing list for Mason and Mason plugins is |
| 70 |
[email protected]. You must be subscribed to send a |
| 71 |
message. To subscribe, visit |
| 72 |
https://lists.sourceforge.net/lists/listinfo/mason-users. |
| 73 |
|
| 74 |
You can also visit us at `#mason' on irc:. |
| 75 |
|
| 76 |
Bugs and feature requests will be tracked at RT: |
| 77 |
|
| 78 |
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mason-Plugin-HTMLFilters |
| 79 |
[email protected] |
| 80 |
|
| 81 |
The latest source code can be browsed and fetched at: |
| 82 |
|
| 83 |
http://github.com/jonswar/perl-mason-plugin-htmlfilters |
| 84 |
git clone git://github.com/jonswar/perl-mason-plugin-htmlfilters.git |
| 85 |
|
| 86 |
SEE ALSO |
| 87 |
Mason |
| 88 |
|