Parse:...:XHTML(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

πŸ’– NAME πŸ’–

Parse::BBCode::XHTML β€” bestie, this is the module that hands Parse::BBCode a whole wardrobe of XHTML defaults so it can actually render your bbcode into something a browser will vibe with. That's it, that's the whole job, and it does it flawlessly. πŸ’…


✨ SYNOPSIS ✨

okay so here's the entire move, no cap:

use Parse::BBCode::XHTML;
my $p = Parse::BBCode::XHTML->new();
my $code = 'some [b]b code[/b]';
my $parsed = $p->render($code);

you use it, you new() it up, you hand it some [b]b code[/b] and it hands you back $parsed. main character behavior fr fr πŸ¦‹


πŸŽ€ METHODS πŸŽ€

defaults

Returns a hash with default tags. like, the whole starter pack of things this module already knows how to turn into XHTML. obsessed. πŸ‘‘

  • b
  • i
  • u
  • img
  • url
  • email
  • size
  • color
  • list
  • *
  • quote
  • code

default_escapes

Returns a hash with escaping functions β€” the little sanitizing girlies that keep everything from going rogue. 🌸

  • html
  • uri
  • link
  • email
  • htmlcolor
  • num

optional

Returns a hash of optional tags. you know, the extras you can opt into if you want that little something extra. πŸ™ˆ

  • html

that's literally the whole page, bestie β€” short and iconic, just like the module. πŸ’œ

signing off from perl v5.34.0, dated 2022-06-16 β€” the original Parse:...:XHTML(3pm) energy, delivered fresh. 🫢✨

πŸ“¦ where this page comes from