File: README

package info (click to toggle)
libhtml-formattext-withlinks-perl 0.15-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 192 kB
  • sloc: perl: 246; makefile: 2
file content (44 lines) | stat: -rw-r--r-- 704 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
NAME
    HTML::FormatText::WithLinks - HTML to text conversion with links as
    footnotes

SYNOPSIS
        use HTML::FormatText::WithLinks;

        my $f = HTML::FormatText::WithLinks->new();

        my $html = qq(
        <html>
        <body>
        <p>
            Some html with a <a href="http://example.com/">link</a>
        </p>
        </body>
        </html>
        );

        my $text = $f->parse($html);

        print $text;

        # results in something like

        Some html with a [1]link

        1. http://example.com/

INSTALLATION

Either

    perl Makefile.PL
    make
    make test
    make install

or

    perl Build.PL
    ./Build
    ./Build test
    ./Build install