Query: html::formattext
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HTML::FormatText(3) User Contributed Perl Documentation HTML::FormatText(3)NAMEHTML::FormatText - Format HTML as plaintextVERSIONversion 2.10SYNOPSISuse HTML::TreeBuilder; $tree = HTML::TreeBuilder->new->parse_file("test.html"); use HTML::FormatText; $formatter = HTML::FormatText->new(leftmargin => 0, rightmargin => 50); print $formatter->format($tree); or, more simply: use HTML::FormatText; my $string = HTML::FormatText->format_file( 'test.html', leftmargin => 0, rightmargin => 50 );DESCRIPTIONHTML::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. HTML::FormatText is built on HTML::Formatter and documentation for that module applies to this - especially "new" in HTML::Formatter, "format_file" in HTML::Formatter and "format_string" in HTML::Formatter. You might specify the following parameters when constructing the formatter: leftmargin (alias lm) The column of the left margin. The default is 3. rightmargin (alias rm) The column of the right margin. The default is 72.SEE ALSOHTML::FormatterINSTALLATIONSee perlmodinstall for information and options on installing Perl modules.BUGS AND LIMITATIONSNo bugs have been reported. Please report any bugs or feature requests through the web interface at <http://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Format>.AVAILABILITYThe project homepage is <http://search.cpan.org/dist/HTML-Format>. The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you, or see <http://search.cpan.org/dist/HTML-Format/>. The development version lives at <http://github.com/nigelm/html-format> and may be cloned from <git://github.com/nigelm/html-format.git>. Instead of sending patches, please fork this project using the standard git and github infrastructure.AUTHORSo Nigel Metheringham <nigelm@cpan.org> o Sean M Burke <sburke@cpan.org> o Gisle Aas <gisle@ActiveState.com>COPYRIGHT AND LICENSEThis software is copyright (c) 2011 by Nigel Metheringham, 2002-2005 Sean M Burke, 1999-2002 Gisle Aas. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.16.3 2014-06-10 HTML::FormatText(3)
Related Man Pages |
---|
html::formattext(3) - osx |
html::formatmarkdown5.18(3) - mojave |
html::formatter(3) - centos |
html::formatps(3pm) - debian |
html::formattext(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Perl or RE help! |
Perl programming error |
Email with multiple attachments & HTML body |
Help with regular expression |
Get a value from HTML |