www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.View.convertToNode(htmlContent, targetDocument)

Mojo.View.convertToNode(htmlContent, targetDocument)

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

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)