HTML::...n::Text(3pm)
π HTML::TokeParser::Simple::Token::Text π
okay bestie, so this is the perl documentation page for HTML::TokeParser::Simple::Token::Text (it lives in the 3pm section, iykyk) π«Ά
β¨ NAME β¨
HTML::TokeParser::Simple::Token::Text β it's the Token.pm text class, no cap π
π¦ SYNOPSIS π¦
use HTML::TokeParser::Simple;
my $p = HTML::TokeParser::Simple->new( $somefile );
while ( my $token = $p->get_token ) {
# This prints all text in an HTML doc (i.e., it strips the HTML)
next unless $token->is_text;
print $token->as_is;
}
like, that comment in there is doing the Lord's work fr fr β this little loop prints all the text in an HTML doc, aka it strips the HTML right off π
πΈ DESCRIPTION πΈ
So this class represents "text" tokens. that's it, that's the vibe β¨
if you want the actual details, go read the "HTML::TokeParser::Simple" documentation, bestie β it's all there π
π OVERRIDDEN METHODS π
these are the methods that got a glow-up in this class π
as_isβ overridden, she's doing her own thing now β¨is_textβ also overridden, iconic behaviour honestly π
and that's the whole page!! short, sweet, slays π
ngl this one is smol but that's fine, sometimes the main character just doesn't need a whole essay π¦
perl v5.32.1 Β· 2021-12-05 Β· HTML::...n::Text(3pm) β mwah, that's a wrap, ily bye π
π¦ where this page comes from
- debian bookworm: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-tokeparser-simple-perl 3.16-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms