logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Template::Plugin::HtmlToText - Plugin interface to HTML::FormatText

Author

       Fayland Lam, "<fayland>"

Description

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

Name

       Template::Plugin::HtmlToText - Plugin interface to HTML::FormatText

Synopsis

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

See Also