title: get meta description tag with xpath
body: <p>I need the content the description and the keywords tag content. I have this code, but dont write anything. Idea?</p>
  
  <pre><code>$str = &lt;&lt;&lt; EOD
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  
  &lt;head&gt;
  
  &lt;meta name="description" content="text in the description tag" /&gt;
  
  &lt;meta name="keywords" content="text, in, the, keywords, tag" /&gt;
  
  &lt;/head&gt;
  
  EOD;
  $dom = new DOMDocument();
  
  $dom-&gt;loadHTML($str);
  
  $xpath = new DOMXPath($dom);
  $nodes = $xpath-&gt;query('/html/head/meta[name="description"]');
  
  foreach($nodes as $node){
    print $node-&gt;nodeValue;
  }
  </code></pre>