Methods
(inner) keysToTags(keys) → {object}
Converts an array of keys into a tag object
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
keys |
Array.<Object> |
Properties
|
Returns:
- Type
- object
(inner) bbcode(input, templateName) → {string}
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}
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