code: function (html)
      {
          var node;
          //ensure text is escaped
          if (window.DOMParser) {
              var parser = new DOMParser();
              node = parser.parseFromString(html, "text/xml");
          } else {
              node = new ActiveXObject("Microsoft.XMLDOM");
              node.async="false";
              node.loadXML(html);
          }
          return node;
      }
docs: Function: xmlHtmlNode
  Creates an XML DOM html node.
  
  Parameters:
  (String) html - The content of the html node.
  
  Returns:
  A new XML DOM text node.