var content = document.getElementById("id").innerHTML;
<div id="stuff">
<div class="content">
</div>
</div>
html() refers to the content inside of $(#stuff), the <div class="content></div>
function copyHtml(source, destination) {
var clone = source.ownerDocument === destination.ownerDocument
? source.cloneNode(true)
: destination.ownerDocument.importNode(source, true);
while (clone.firstChild) {
destination.appendChild(clone.firstChild);
}
}