1 2 3 4 5 6 7
<iframe id="i"></iframe> <script> var t = i.contentDocument.createElement("template"); i.contentDocument.documentElement.appendChild(t); i.remove(); t.content; </script>