Template::Plugin::HTML::2Text - Template Toolkit plugin to transfor HTML into plain text It simply wraps html2text using HTML::FormatText::Html2text
[% FILTER 2Text %] <h1> Hello </h1> <h3> Bold, Italic and Underline </h3> <b>Bold</b> <b>Italic</b> <b>Underline</b> <h3> List </h3> <ul> <li> Test </li> <li> Test II </li> </ul> <h3> Table </h3> <table> <tr> <th> Col 1 </th> <th> Col 2 </th> </tr> <tr> <td> Val 1 </td> <td> Val 2 </td> </tr> </table> [% END %] Produces ****** Hello ****** **** Bold, Italic and Underline **** Bold Italic Underline **** List **** * Test * Test II **** Table **** Col 1 Col 2 Val 1 Val 2
Template::Plugin::HTML::2Text - Template Toolkit plugin to transfer HTML into plain text
See HTML::FormatText::Html2text for more details.
Template, HTML::FormatText::Html2text
Dalibor Horinek, <dal@horinek.net>
http://www.travelcook.com/
Copyright (C) 2012 Dalibor Horinek. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Template::Plugin::HTML::2Text, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::HTML::2Text
CPAN shell
perl -MCPAN -e shell install Template::Plugin::HTML::2Text
For more information on module installation, please visit the detailed CPAN module installation guide.