MCPcopy Create free account
hub / github.com/BorisMoore/jquery-tmpl / outerHtml

Function outerHtml

jquery.tmpl.js:381–385  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

379 return args ? args.replace( /\\'/g, "'").replace(/\\\\/g, "\\" ) : null;
380 }
381 function outerHtml( elem ) {
382 var div = document.createElement("div");
383 div.appendChild( elem.cloneNode(true) );
384 return div.innerHTML;
385 }
386
387 // Store template items in jQuery.data(), ensuring a unique tmplItem data data structure for each rendered template instance.
388 function storeTmplItems( content ) {

Callers 1

tiHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected