Foorum::Formatter - format content for Foorum
use Foorum::Formatter qw/filter_format/; my $text = q~ :inlove: [b]Test[/b] [size=14]dsadsad[/size] [url=http://fayland/]da[/url]~; my $html = filter($text, { format => 'ubb' } ); print $html; # <img src="/static/images/bbcode/emot/inlove.gif"> <span style="font-weight:bold">Test</span> <span style="font-size:14px">dsadsad</span> <a href="http://fayland/">da</a>
HTML::BBCode, Text::Textile, Text::GooglewikiFormat
Fayland Lam <fayland at gmail.com>
To install Foorum, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Foorum
CPAN shell
perl -MCPAN -e shell install Foorum
For more information on module installation, please visit the detailed CPAN module installation guide.