src/Alg/HtmlParser.php
public function getDescription( $throwException = TRUE )
	{
		$tags	= $this->getMetaTags( TRUE );
		if( isset( $tags['description'] ) )
			return $tags['description'];
		if( isset( $tags['dc.description'] ) )
			return $tags['dc.description'];
		if( $throwException )
			throw new RuntimeException( 'No Description Meta Tag set.' );
		return "";
	}
public function getDescription( $throwException = TRUE )
	{
		$tags	= $this->getMetaTags( TRUE );
		if( isset( $tags['description'] ) )
			return $tags['description'];
		if( isset( $tags['dc.description'] ) )
			return $tags['dc.description'];
		if( $throwException )
			throw new RuntimeException( 'No Description Meta Tag set.' );
		return "";
	}
public function getDescription ( $ throwException = TRUE ) { $ tags = $ this -> getMetaTags ( TRUE ) ; if ( isset ( $ tags [ 'description' ] ) ) return $ tags [ 'description' ] ; if ( isset ( $ tags [ 'dc.description' ] ) ) return $ tags [ 'dc.description' ] ; if ( $ throwException ) throw new RuntimeException ( 'No Description Meta Tag set.' ) ; return "" ; }
Returns Description of HTML Document or throws Exception.
@access		public
@param		bool			$throwException		Flag: throw Exception if not found, otherwise return empty String
@return		string
@throws		RuntimeException
Returns Description of HTML Document or throws Exception .