Parse:...e::Text(3pm)
π Parse::BBCode::Text β the perl manual, but make it cute π
okay bestie, so this is Parse::BBCode::Text, part of the User Contributed Perl Documentation situation (yes, the 3pm one π«Ά). It's the module that gives Parse::BBCode its plaintext defaults. Slay.
β¨ NAME β¨
Parse::BBCode::Text β Provides plaintext defaults for Parse::BBCode
Like, that's literally the whole job. It's giving "we strip the vibes and hand you the words." π
β¨ SYNOPSIS β¨
use Parse::BBCode::Text;
my $p = Parse::BBCode::Markdown->new();
my $code = 'some [b]b code[/b]';
my $plaintext = $p->render($code);
see how it's Parse::BBCode::Markdown->new() in there? Yeah. That's what the original says, and we do not edit the sacred text. Copy it exactly, babe. π
β¨ DESCRIPTION β¨
This module can be used to turn bbcode into minimal plaintext.
That's it. That's the whole vibe. You feed it bbcode, it hands you back the bare-bones words with no fancy formatting energy. Minimal. Clean. Lowkey iconic. β¨
β¨ METHODS β¨
three methods, all of them lil hash-returners. let's go. π
πΈ defaults
Returns a hash with default tags.
b, i, u, img, url, email, size, color, list, *
look at that lineup π those are the tags that come pre-loaded with defaults. and yes, that trailing * is literally part of the list. don't come for me.
πΈ default_escapes
Returns a hash with escaping functions.
html, uri, link, email, htmlcolor, num
six escape-y functions, all cozy in one hash. escaping is self-care fr fr. π¦
πΈ optional
Returns a hash of optional tags.
html
just the one: html. it's optional. it's mysterious. it's the main character of this method. π
π heads up bestie: the defaults and the optional tags are different hashes from different methods. don't go mixing them up, that's a vibe check you will fail.
π the cute sign-off π
this page came to you courtesy of perl v5.34.0, dated 2022-06-16, filed under Parse::BBCode::Text(3pm). no cap. go render some plaintext, bestie. πβ¨π
π¦ where this page comes from
- debian bookworm: libparse-bbcode-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libparse-bbcode-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libparse-bbcode-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libparse-bbcode-perl 0.15-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libparse-bbcode-perl 0.15-2 Β· 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