Module: templateUtil

Methods

(static) createNodeFromTemplate(html) → {HTMLElement}

Parameters:
Name Type Description
html string

markup of the template

Source:
Returns:

a cloned root element of the template

Type
HTMLElement

(static) escapeHTML(str) → {string}

Parameters:
Name Type Description
str string
Source:
Returns:

The string with any HTML entities escaped.

Type
string