parser

Methods

(inner) serialize(rootNode, parameters) → {string}

Source:
Parameters:
Name Type Description
rootNode Node
parameters object
Properties
Name Type Default Description
excludeBBCode boolean false
excludeRoot boolean true
Returns:
Type
string

(inner) tokenize(str) → {Array.<Object>}

Source:
Parameters:
Name Type Description
str string
Returns:
Type
Array.<Object>

(inner) parse(str) → {BBDocument}

Source:
Parameters:
Name Type Description
str string

The input text

Returns:

An array of BBNode

Type
BBDocument