src/HtmlDomParserHelper.php
public function getPageDescription()
    {
        if (!$this->parser) {
            return;
        }

        $node = $this->parser->find('meta[name=description]', 0);

        if ($node) {
            return $node->getAttribute('content');
        }
    }
public function getPageDescription()
    {
        if (!$this->parser) {
            return;
        }

        $node = $this->parser->find('meta[name=description]', 0);

        if ($node) {
            return $node->getAttribute('content');
        }
    }
public function getPageDescription ( ) { if ( ! $ this -> parser ) { return ; } $ node = $ this -> parser -> find ( 'meta[name=description]' , 0 ) ; if ( $ node ) { return $ node -> getAttribute ( 'content' ) ; } }
Get page description

@return string description
Get page description