1HTML::FormatText::ElinkUss(e3r)Contributed Perl DocumentHaTtMiLo:n:FormatText::Elinks(3)
2
3
4
6 HTML::FormatText::Elinks - format HTML as plain text using elinks
7
9 use HTML::FormatText::Elinks;
10 $text = HTML::FormatText::Elinks->format_file ($filename);
11 $text = HTML::FormatText::Elinks->format_string ($html_string);
12
13 $formatter = HTML::FormatText::Elinks->new (rightmargin => 60);
14 $tree = HTML::TreeBuilder->new_from_file ($filename);
15 $text = $formatter->format ($tree);
16
18 "HTML::FormatText::Elinks" turns HTML into plain text using the
19 "elinks" program.
20
21 <http://elinks.cz/>
22
23 The module interface is compatible with formatters like
24 "HTML::FormatText", but all parsing etc is done by elinks.
25
26 See "HTML::FormatExternal" for the formatting functions and options,
27 all of which are supported by "HTML::FormatText::Elinks" with the
28 following caveats.
29
30 "input_charset"
31 As of Elinks 0.12pre2 (Oct 2008) has various unibyte input charsets
32 but the only multibyte input charset accepted is utf-8. You could
33 recode others to utf-8 if necessary (but this module doesn't
34 attempt to do that automatically).
35
36 Elinks can be a little picky about its charset names. This module
37 attempts to ease that by for instance turning "latin-1" (not accepted)
38 into "latin1" (which is accepted). A full name "ISO-8859-1" etc is
39 accepted too.
40
42 HTML::FormatExternal, elinks(1)
43
45 <http://user42.tuxfamily.org/html-formatexternal/index.html>
46
48 Copyright 2008, 2009, 2010, 2012, 2013, 2015 Kevin Ryde
49
50 HTML-FormatExternal is free software; you can redistribute it and/or
51 modify it under the terms of the GNU General Public License as
52 published by the Free Software Foundation; either version 3, or (at
53 your option) any later version.
54
55 HTML-FormatExternal is distributed in the hope that it will be useful,
56 but WITHOUT ANY WARRANTY; without even the implied warranty of
57 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
58 General Public License for more details.
59
60 You should have received a copy of the GNU General Public License along
61 with HTML-FormatExternal. If not, see <http://www.gnu.org/licenses/>.
62
63
64
65perl v5.38.0 2023-07-20 HTML::FormatText::Elinks(3)