HTML::...ag::End(3pm)
β¨ NAME β¨
HTML::TokeParser::Simple::Token::Tag::End β the Token.pm "end tag" class π
(that's the whole name bestie, we're not abbreviating, HTML::...ag::End(3pm) is just the page header being lazy π)
πΈ 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β¦ look at that. Lowkey iconic. It loops through every token and skips anything that isn't text, so all you're left with is the words. Ate. π₯
π¦ DESCRIPTION π¦
This class does most of the heavy lifting for HTML::TokeParser::Simple. She's the main character doing all the work in the background, no cap. π
Want the details? Go read the HTML::TokeParser::Simple docs, that's where the full lore lives. π
π OVERRIDDEN METHODS π
These are the methods this class took over and made its own. The originals were giving nothing, so she rewrote them. Periodt. π
as_isget_tagis_end_tagis_tagreturn_textrewrite_tag
bestie that's literally the whole page. six methods, zero filler, she's efficient like that π«Ά
okay so that's a wrap on the HTML::...ag::End(3pm) page β brought to you by User Contributed Perl Documentation (yes the manual name, it's giving community-maintained excellence π), running on perl v5.32.1, dated 2021-12-05. Shoutout to whoever wrote this, we love you, mwah πβ¨
π¦ 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