title: How to scrape specific data from scrape with simple html dom parser
body: <p>I am trying to scrape the price data from a product on an amazon webpage, but I get more than just the price data in the variable, I get other elements included such as <code>&lt;span&gt;</code> etc. The code...</p>
  
  <pre><code>include 'simple_html_dom.php';
  $html1 = file_get_html('http://www.amazon.co.uk/New-Apple-iPod-touch-Generation/dp/B0040GIZTI/ref=br_lf_m_1000333483_1_1_img?ie=UTF8&amp;s=electronics&amp;pf_rd_p=229345967&amp;pf_rd_s=center-3&amp;pf_rd_t=1401&amp;pf_rd_i=1000333483&amp;pf_rd_m=A3P5ROKL5A1OLE&amp;pf_rd_r=1ZW9HJW2KN2C2MTRJH60');
  
  $price_data1 = $html1-&gt;find('b[class=priceLarge]',0);
  </code></pre>
  
  <p>The variable then also contains data such as <code>&lt;b class="priceLarge"&gt;£163.00&lt;/b&gt;</code></p>
  
  <p>Is there a way to trim the unwanted data out ? I just need £163.00.</p>
  
  <p>I am unsure if I do it during the find, or perhaps when i echo out the variable, then do I specify what I want ? </p>
  
  <p>Cheers</p>