Debian Codegraph @

README

raw
1 NAME
2 HTML::FormatText::WithLinks - HTML to text conversion with links as
3 footnotes
4
5 SYNOPSIS
6 use HTML::FormatText::WithLinks;
7
8 my $f = HTML::FormatText::WithLinks->new();
9
10 my $html = qq(
11 <html>
12 <body>
13 <p>
14 Some html with a <a href="http://example.com/">link</a>
15 </p>
16 </body>
17 </html>
18 );
19
20 my $text = $f->parse($html);
21
22 print $text;
23
24 # results in something like
25
26 Some html with a [1]link
27
28 1. http://example.com/
29
30 INSTALLATION
31
32 Either
33
34 perl Makefile.PL
35 make
36 make test
37 make install
38
39 or
40
41 perl Build.PL
42 ./Build
43 ./Build test
44 ./Build install