public function setMeta($name, $content)
    {
        $c = $this->filterXPath('descendant-or-self::meta[@name = \'' . $name . '\']');
        if (count($c) == 0) {
            $node = $this->dom->createElement('meta');
            $node->setAttribute('name', $name);
            $this->getHeadNode()->appendChild($node);
            $c->addNode($node);
        }
        $c->setAttribute('content', $content);
    }
public function setMeta($name, $content)
    {
        $c = $this->filterXPath('descendant-or-self::meta[@name = \'' . $name . '\']');
        if (count($c) == 0) {
            $node = $this->dom->createElement('meta');
            $node->setAttribute('name', $name);
            $this->getHeadNode()->appendChild($node);
            $c->addNode($node);
        }
        $c->setAttribute('content', $content);
    }
public function setMeta ( $ name , $ content ) { $ c = $ this -> filterXPath ( 'descendant-or-self::meta[@name = \'' . $ name . '\']' ) ; if ( count ( $ c ) == 0 ) { $ node = $ this -> dom -> createElement ( 'meta' ) ; $ node -> setAttribute ( 'name' , $ name ) ; $ this -> getHeadNode ( ) -> appendChild ( $ node ) ; $ c -> addNode ( $ node ) ; } $ c -> setAttribute ( 'content' , $ content ) ; }
Set a META tag with specified 'name' and 'content' attributes

@TODO: add support for multiple meta tags with the same name but different languages

@param $name
@param $content
Set a META tag with specified name and content attributes