title: simple_html_dom parser : filter found tag
body: <p>I would like to parse code with structure like this :</p>
  
  <pre><code>&lt;p class=class1&gt;
   &lt;i&gt;.&lt;/i&gt;
   &lt;b&gt;..&lt;/b&gt;
  &lt;a class=class2&gt;&lt;/a&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>and i need to get whole content of <code>&lt;p&gt;</code> but only without <code>&lt;a&gt;</code> tags with. I need to keep there all the other tags like <code>&lt;i&gt;</code> or <code>&lt;b&gt;</code>
  How can i do it?  </p>
  
  <p>Now i have just this code : </p>
  
  <pre><code> $content = $page-&gt;find('p[class=class1]');
   foreach($content as $text)
    {
      $inner=$text-&gt;innertext();
    }    
  </code></pre>
  
  <p>it´s able to find whole content with <code>&lt;a&gt;</code> tags. And </p>