Symfony's DomCrawler how can I extract meta description from html source
I assume you are trying to get content attribute value so try to use
$data = $crawler->filterXpath("//meta[@name='description']")->extract(array('content'));
and loop through $data
.
$meta_description = $crawler->filter('meta[name="description"]')->eq(0)->attr('content');