Methods
(static) createNodeFromTemplate(html) → {Element}
Parameters:
Name | Type | Description |
---|---|---|
html |
string | markup of the template |
- Source:
Returns:
a cloned root element of the template
- Type
- Element
(static) escapeHTML(str) → {string}
Parameters:
Name | Type | Description |
---|---|---|
str |
string |
- Source:
Returns:
The string with any HTML entities escaped.
- Type
- string