1HTML::TokeParser::SimplUes:e:rToCkoennt:r:iCbHouTmtMmeLed:n:tPT(eo3rkplemP)Daorcsuemre:n:tSaitmipolne::Token::Comment(3pm)
2
3
4
6 HTML::TokeParser::Simple::Token::Comment - Token.pm comment class.
7
9 use HTML::TokeParser::Simple;
10 my $p = HTML::TokeParser::Simple->new( $somefile );
11
12 while ( my $token = $p->get_token ) {
13 # This prints all text in an HTML doc (i.e., it strips the HTML)
14 next unless $token->is_text;
15 print $token->as_is;
16 }
17
19 This is the class for comment tokens.
20
21 See HTML::Parser for detailed information about comments.
22
24 is_comment
25 is_comment() will return true if the token is the DTD at the top of the
26 HTML.
27
28
29
30perl v5.38.0 H2T0M2L3:-:0T7o-k2e0Parser::Simple::Token::Comment(3pm)