function (html)
    {
        var fragment = document.createElement('body');

        // force the browser to try and fix any invalid HTML tags
        fragment.innerHTML = html;

        // copy cleaned html into an xml dom
        var xhtml = Strophe.createHtml(fragment);

        while(xhtml.childNodes.length > 0) {
            this.node.appendChild(xhtml.childNodes[0]);
        }
        return this;
    }
function (html)
    {
        var fragment = document.createElement('body');

        // force the browser to try and fix any invalid HTML tags
        fragment.innerHTML = html;

        // copy cleaned html into an xml dom
        var xhtml = Strophe.createHtml(fragment);

        while(xhtml.childNodes.length > 0) {
            this.node.appendChild(xhtml.childNodes[0]);
        }
        return this;
    }
function ( html ) { var fragment = document . createElement ( 'body' ) ; // force the browser to try and fix any invalid HTML tags
 fragment . innerHTML = html ; // copy cleaned html into an xml dom
 var xhtml = Strophe . createHtml ( fragment ) ; while ( xhtml . childNodes . length > 0 ) { this . node . appendChild ( xhtml . childNodes [ 0 ] ) ; } return this ; }
Function: h
Replace current element contents with the HTML passed in.

This *does not* make the child the new current element

Parameters:
(String) html - The html to insert as contents of current element.

Returns:
The Strophe.Builder object.
Function : h Replace current element contents with the HTML passed in .
Creates a new dom object from the given html string