1HTML::TokeParser::SimplUes:e:rToCkoennt:rH:iTDbMeuLct:le:adTroaPkteeirPolanr(Ds3oe)cru:m:eSnitmaptlieo:n:Token::Declaration(3)
2
3
4
6 HTML::TokeParser::Simple::Token::Declaration - Token.pm declaration
7 class.
8
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
20 This is the declaration class for tokens.
21
23 is_declaration
24 "is_declaration()" will return true if the token is the DTD at the top
25 of the HTML.
26
27
28
29perl v5.30.1 HTM2L0:2:0T-o0k1e-P3a0rser::Simple::Token::Declaration(3)