logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Parse::BBCode::HTML - Provides HTML defaults for Parse::BBCode

Methods

       defaults
           Returns a hash with default tags.

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

       default_escapes
           Returns a hash with escaping functions. These are:

               html, uri, link, email, htmlcolor, num

       optional
           Returns a hash of optional tags. These are:

               html

perl v5.34.0                                       2022-06-16                           Parse::BBCode::HTML(3pm)

Name

       Parse::BBCode::HTML - Provides HTML defaults for Parse::BBCode

Synopsis

           use Parse::BBCode;
           # my $p = Parse::BBCode->new();
           my $p = Parse::BBCode->new({
               tags => {
                   Parse::BBCode::HTML->defaults,
                   # add your own tags here if needed
               },
               escapes => {
                   Parse::BBCode::HTML->default_escapes,
                   # add your own escapes here if needed
               },
           });
           my $code = 'some [b]b code[/b]';
           my $parsed = $p->render($code);

See Also