Template::Plugin::HtmlToText(3pm)

Template::Plugin::HtmlToText3pm

Plugin interface to html::formattext

Usage

Quick summary of what the module does.

Perhaps a little code snippet.

    [% USE HtmlToText %]
    # use html2text FILTER to var 'myhtml' or 'myhtmltext'
    [% myhtml FILTER html2text(leftmargin => 0, rightmargin => 50) %]
    [% myhtmltext | html2text %]
    
    # not to a var, but to html code
    [% FILTER html2text %]
    <b>heavy</b>
    [% END %]
    [%# output is "heavy", no <b></b> %]

Overview

This plugin provides an interface to the HTML::FormatText module which format HTML as plaintext.

Author

Fayland Lam, "<fayland>"

From libtemplate-plugin-htmltotext-perl 0.03-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.