title: How to delete HTML text between html tags in PHP using SimpleHtmlDom
body: <p>Using <a href="http://simplehtmldom.sourceforge.net/" rel="nofollow">http://simplehtmldom.sourceforge.net/</a> I know this could extract the html text:</p>
  
  <pre><code>&lt;?php
  include('simple_html_dom.php');
  // Create DOM from URL
  echo file_get_html('http://www.google.com/')-&gt;plaintext; 
  
  ?&gt;
  </code></pre>
  
  <p>But how to delete all the text? </p>
  
  <p>For example, if I have this input HTML:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Example&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;Lore Ipsum&lt;/h1&gt;
          &lt;p&gt;
              Lorem ipsum dolor sit amet, consectetuer adipiscing elit.&lt;br/&gt;
              Aenean &lt;em&gt;commodo&lt;/em&gt; ligula eget dolor. Aenean massa.
          &lt;/p&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I would like to get this output with SimpleHtmlDom:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;&lt;/h1&gt;
          &lt;p&gt;&lt;br/&gt;&lt;/p&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In other words, I want to keep the structure of the document only.</p>
  
  <p>Please help.</p>