HTML::FormatText - Format HTML as plaintext |
HTML::FormatText - Format HTML as plaintext
require HTML::TreeBuilder; $tree = HTML::TreeBuilder->new->parse_file("test.html");
require HTML::FormatText; $formatter = HTML::FormatText->new(leftmargin => 0, rightmargin => 50); print $formatter->format($tree);
The HTML::FormatText is a formatter that outputs plain latin1 text. All character attributes (bold/italic/underline) are ignored. Formatting of HTML tables and forms is not implemented.
You might specify the following parameters when constructing the formatter:
Copyright (c) 1995-2002 Gisle Aas, and 2002- Sean M. Burke. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Current maintainer: Sean M. Burke <sburke@cpan.org>
Original author: Gisle Aas <gisle@aas.no>
HTML::FormatText - Format HTML as plaintext |