IRC::F...g::HTML(3pm)
π 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 & 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 & LICENSE π
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
- debian bookworm: libirc-formatting-html-perl 0.29-1.1
- debian trixie: libirc-formatting-html-perl 0.29-1.1
- ubuntu jammy: libirc-formatting-html-perl 0.29-1.1
- ubuntu noble: libirc-formatting-html-perl 0.29-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms