Utility class with functions for preprocessing HTML content.
Methods
-
(static) .getTemplateContent(node) : {Array.<Node>}
-
Utility that will clone the content of a template node and return an array of DOM Nodes.
Parameters:
Name Type Description nodeNode The template node to retrieve the content for. Returns:
- Type
- Array.<Node>
-
(static) .stringToNodeArray(html) : {Array.<Node>}
-
Utility that will parse an HTML string into an array of DOM Nodes.
Parameters:
Name Type Description htmlstring The HTML string to parse. Returns:
- Type
- Array.<Node>