Converts the provided HTML content into nodes. Returns the first Element node at the top level of the content.
Parameter | Type | Description |
---|---|---|
htmlContent | Object | HTML content to convert. |
targetDocument | Object |
Example usage:
content = Mojo.View.render({object: itemModel, template: itemModel.template}); node = Mojo.View.convertToNode(content, this.controller.document);
0 Comments