---
name: "Template::Plugin::HtmlToText"
section: "3pm"
platform: "linux"
package: "libtemplate-plugin-htmltotext-perl"
version: "0.03-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Template::Plugin::HtmlToText"
---

# Template::Plugin::HtmlToText(3pm)

Plugin interface to HTML::FormatText

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

## DESCRIPTION

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

## AUTHOR

Fayland Lam, `"<fayland>"`

## COPYRIGHT & LICENSE

Copyright 2006 Fayland Lam, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
