The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Template::Plugin::HTML::2Text - Template Toolkit plugin to transfor HTML into plain text It simply wraps html2text using HTML::FormatText::Html2text

SYNOPSIS

  [% 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

DESCRIPTION

Template::Plugin::HTML::2Text - Template Toolkit plugin to transfer HTML into plain text

See HTML::FormatText::Html2text for more details.

SEE ALSO

Template, HTML::FormatText::Html2text

AUTHOR

Dalibor Horinek, <dal@horinek.net>

http://www.travelcook.com/

COPYRIGHT AND LICENSE

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.