title: Exclude elements through PHP Simple HTML Dom Parser
body: <p>I would like to exclude some elements from DOM to extract a piece of text.</p>
  
  <p>For example, with this code:</p>
  
  <pre><code>&lt;div&gt;foo &lt;b&gt;bar&lt;/b&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I would like to extract only the text "foo". Is there any way to do it?</p>
  
  <p>Thank you very much in advance.</p>