title: PHP Goutte Web Scraping
body: <p>I want to <strong>scrape</strong> this:</p>
  <pre><code>&lt;a class=&quot;pdt_title&quot;&gt; 
    Japan Sun Apple - Fuji
    &lt;span class=&quot;pdt_Tweight&quot;&gt;2 per pack&lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  <p>This is my code:</p>
  <pre><code>use Goutte\Client;
  $client = new Client();
  $crawler = $client-&gt;request('GET', 'https://www.fairprice.com.sg/searchterm/apple');
  foreach ($crawler-&gt;filter('a.pdt_title') as $node) {
      print $node-&gt;nodeValue.&quot;\n&quot;;
  }
  </code></pre>
  <p>I only want to <strong>scrape</strong> the text inside &quot;a&quot; tag without the text inside &quot;span&quot; tag.
  How to only get the text inside &quot;a&quot; tag?</p>