1HTML::TokeParser::SimplUes:e:rToCkoennt(r3i)buted Perl DHoTcMuLm:e:nTtoakteiPoanrser::Simple::Token(3)
2
3
4

NAME

6       HTML::TokeParser::Simple::Token - Base class for
7       "HTML::TokeParser::Simple" tokens.
8

SYNOPSIS

10        use HTML::TokeParser::Simple;
11        my $p = HTML::TokeParser::Simple->new( $somefile );
12
13        while ( my $token = $p->get_token ) {
14            # This prints all text in an HTML doc (i.e., it strips the HTML)
15            next unless $token->is_text;
16            print $token->as_is;
17        }
18

DESCRIPTION

20       This is the base class for all returned tokens.  It should never be
21       instantiated directly.  In fact, it will "croak()" if it is.
22

METHODS

24       The following list of methods are provided by this class.  Most of
25       these are stub methods which must be overridden in a subclass.  See
26       HTML::TokeParser::Simple for descriptions of these methods.
27
28       •   as_is
29
30       •   delete_attr
31
32       •   get_attr
33
34       •   get_attrseq
35
36       •   get_tag
37
38       •   get_token0
39
40       •   is_comment
41
42       •   is_declaration
43
44       •   is_end_tag
45
46       •   is_pi
47
48       •   is_process_instruction
49
50       •   is_start_tag
51
52       •   is_tag
53
54       •   is_text
55
56       •   return_attr
57
58       •   return_attrseq
59
60       •   return_tag
61
62       •   return_text
63
64       •   return_token0
65
66       •   rewrite_tag
67
68       •   set_attr
69
70
71
72perl v5.34.0                      2022-01-21HTML::TokeParser::Simple::Token(3)
Impressum