title: Filtering with Goutte in Symfony 2+
body: <p>I am trying to extract a specific value from a html file using goutte</p>
  
  <pre><code>    $client = new Client();
      $crawler = $client-&gt;request('GET', 'http://localhost:8081/app_dev.php');
      $htmlContent= $crawler-&gt;filter('label')-&gt;last()-&gt;html();
      var_dump($htmlContent);die();
  </code></pre>
  
  <p>in this case, I get the snippet:</p>
  
  <pre><code>&lt;input type="password" maxlength="40"  myfield1="KqewkKAFyk7Vmsy" &gt;
  </code></pre>
  
  <p>I want to extract the value of <code>myfield1</code> a. how do I achieve that?</p>
  
  <p>I tried allready without any success (result is NULL):</p>
  
  <pre><code>    $htmlContent= $crawler-&gt;filter('label')-&gt;last()-&gt;attr('myfield1');
  </code></pre>