public function getMeta($name)
    {
        $node = $this->filterXPath('descendant-or-self::meta[@name = \'' . $name . '\']')->getNode(0);
        if ($node instanceof \DOMElement) {
            return $node->getAttribute('content');
        } else {
            return null;
        }
    }
public function getMeta($name)
    {
        $node = $this->filterXPath('descendant-or-self::meta[@name = \'' . $name . '\']')->getNode(0);
        if ($node instanceof \DOMElement) {
            return $node->getAttribute('content');
        } else {
            return null;
        }
    }
public function getMeta ( $ name ) { $ node = $ this -> filterXPath ( 'descendant-or-self::meta[@name = \'' . $ name . '\']' ) -> getNode ( 0 ) ; if ( $ node instanceof \ DOMElement ) { return $ node -> getAttribute ( 'content' ) ; } else { return null ; } }
Get the content attribute of a meta tag with the specified name attribute

@param string $name
@return null|string
Get the content attribute of a meta tag with the specified name attribute