Parse:...e::Text(3pm)

πŸ“¦
version 0.15 Β· 2 versions
  • 0.15 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.15 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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