Template::Plugin::TextToHtml - Plugin interface to HTML::FromText
[% USE TextToHtml %] # call text2html subroutine [% text2html(mytext, paras=1, url=1, email=1) %] # or use text2html FILTER [% mytext FILTER text2html(paras=1, url=1, email=1) %]
This plugin provides an interface to the HTML::FromText module which provides simple HTML formatting.
TextToHtml defines a subrouting text2html that, when called, reformats plain text into HTML.
text2html
The options passed to the text2html subroutine correspond to those passed to the same routine from the HTML::FromText module.
Casey West <casey@geeknest.com>
0.01
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Template::Plugin, HTML::FromText
To install Template::Plugin::TextToHtml, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::TextToHtml
CPAN shell
perl -MCPAN -e shell install Template::Plugin::TextToHtml
For more information on module installation, please visit the detailed CPAN module installation guide.