title: javascript replace document.documentElement.innerHTML
body: <p>in a html page, i have </p>
  
  <pre><code>&lt;html&gt;
     &lt;script&gt;
         var cnt=''+document.documentElement.innerHTML+'';
  cnt=cnt.replace(......);
     &lt;/script&gt;
     &lt;body&gt; something else&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>how to use replace function above, so that my 'cnt' var content is like below</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt; something else&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>