IRC::F...g::HTML(3pm)

πŸ“¦
version 0.29 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– IRC::Formatting::HTML πŸ’–

okay bestie, so this is the IRC::F...g::HTML(3pm) page β€” yes it's a User Contributed Perl Documentation page, and no the name isn't actually cursed, it's just a long module name that got squished in the header. It's IRC::Formatting::HTML and it's literally the little glow-up artist that converts between HTML and IRC formatting. The actual NAME of this thing? Convert between HTML and IRC formatting. that's the whole job. she's a translator. she ate. πŸ’…


✨ VERSION ✨

Version 0.29 πŸŽ€


🌸 SYNOPSIS 🌸

first up, converting raw IRC formatting into HTML:

use IRC::Formatting::HTML qw/irc_to_html html_to_irc/;

...

my $irctext = "\002\0031,2Iron & Wine";
my $html = irc_to_html($irctext);
print $html

# the above will print:
# <span style="font-weight: bold;color: #000; background-color: #008">Iron &amp; Wine</span>

...

my $html = "<b><em>Nicotine and gravy</em></b>";
my $irctext = html_to_irc($html);
print $html;

# the above will print:
# \002\026Nicotine and Gravy\002\026

(and yes the second example prints $html not $irctext, that's just what it says, don't @ me, it's verbatim πŸ’€)


πŸ¦‹ FUNCTIONS πŸ¦‹

🌈 irc_to_html

irc_to_html($irctext, invert => "italic")

she takes an irc formatted string and hands you back the HTML version 🫢. and there's an option where you can treat inverted text as italic text β€” cute, right?

🌈 html_to_irc

html_to_irc($html)

she takes an HTML string and returns an irc formatted string. the reverse glow-up. periodt. ✨


πŸ‘‘ AUTHOR πŸ‘‘

Lee Aylward, <leedo@cpan.org> πŸ’œ


πŸ™ˆ BUGS πŸ™ˆ

pls pls pls report any bugs or feature requests to bug-irc-formatting-html at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IRC-Formatting-HTML>.

bestie the way this works is: I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. so like, you're in the loop fr fr 🫢

🌟 SUPPORT 🌟

you can find documentation for this module with the perldoc command:

perldoc IRC::Formatting::HTML

you can also look for information at:

  • RT: CPAN's request tracker

<http://rt.cpan.org/NoAuth/Bugs.html?Dist=IRC-Formatting-HTML>

  • AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/IRC-Formatting-HTML>

  • CPAN Ratings

<http://cpanratings.perl.org/d/IRC-Formatting-HTML>

  • Search CPAN

<http://search.cpan.org/dist/IRC-Formatting-HTML/>


πŸ’– ACKNOWLEDGEMENTS πŸ’–

This is a direct port of Sam Stephenson's ruby version. iconic lineage honestly 🧚


Copyright 2009 Lee Aylward, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


okay that's the whole page, no cap πŸ’… perl v5.32.0, dated 2021-01-05, and that's your IRC::F...g::HTML(3pm) β€” go convert some formatting bestie, you got this πŸ’–βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from