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);

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