bbcode

Methods

(inner) keysToTags(keys) → {object}

Source:

Converts an array of keys into a tag object

Parameters:
Name Type Description
keys Array.<Object>
Properties
Name Type Description
name string
value string
Returns:
Type
object

(inner) bbcode(input, templateName) → {string}

Source:

Converts HTML to BBCode

Parameters:
Name Type Description
input string

HTML string to be converted into BBCode

templateName string

The name of the BBCode template

Returns:

The BBCode output

Type
string

(inner) html(input, templateName) → {string}

Source:

Converts BBCode to HTML Parse BBCode input into abstract tree made of tokens and turn them into nodes

Parameters:
Name Type Description
input string

BBCode string to be converted into HTML

templateName Object

The name of the BBCode template

Returns:

The HTML output

Type
string