Template

template~ Template

new Template(codes, document)

Source:
Parameters:
Name Type Description
codes Array.<Code>
document Document

Members

(readonly) codes :Array.<Code>

Source:
Type:
  • Array.<Code>

(readonly) document :Document

Source:
Type:
  • Document

Methods

toHTML(input) → {string}

Source:

Convert BBcode string to HTML string

Parameters:
Name Type Description
input string
Returns:
Type
string

toBBCode(input) → {string}

Source:

Convert HTML string to BBcode string

Parameters:
Name Type Description
input string
Returns:
Type
string