1HTML::TokeParser::SimplUes:e:rToCkoennt:r:iTbeuxtte(d3H)PTeMrLl::DToockuemPeanrtsaetri:o:nSimple::Token::Text(3)
2
3
4
6 HTML::TokeParser::Simple::Token::Text - Token.pm text 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 class represents "text" tokens. See the
20 "HTML::TokeParser::Simple" documentation for details.
21
23 · as_is
24
25 · is_text
26
27
28
29perl v5.28.0 2018-H0T7M-L1:4:TokeParser::Simple::Token::Text(3)