title: PHP Simple HTML DOM parser: excluding tags
body: <p>I need to exclude a <pre>img</pre> tag from</p>
  
  <pre><code> &lt;a href="http://www.facebook.com/xxxxxx"&gt;
       &lt;img style="float: left; margin-right: 10px;" 
            src="http://profile.ak.fbcdn.net/xxxxx/xxxxx.jpg"&gt;
        Matt Cartledge
   &lt;/a&gt;
  </code></pre>
  
  <p>and get only the text i.e. Matt Carledge. Is it possitble using php simple html dom parser?
  Thnk you.</p>
  
  <pre><code>$first_anchor = $list-&gt;find('a',0);
  $prof_img = $first_anchor-&gt;find('img',0)-&gt;src;
  echo $prof_name = $first_anchor-&gt;innertext;die();
  </code></pre>
  
  <p>i need prof_name to be "Matt Cartledge".</p>