src/Alg/HtmlParser.php
public function getLanguage( $throwException = TRUE )
	{
		$tags	= $this->getMetaTags( TRUE );
		if( isset( $tags['content-language'] ) )
			return $tags['content-language'];
		if( $throwException )
			throw new RuntimeException( 'No Language Meta Tag set.' );
		return "";
	}
public function getLanguage( $throwException = TRUE )
	{
		$tags	= $this->getMetaTags( TRUE );
		if( isset( $tags['content-language'] ) )
			return $tags['content-language'];
		if( $throwException )
			throw new RuntimeException( 'No Language Meta Tag set.' );
		return "";
	}
public function getLanguage ( $ throwException = TRUE ) { $ tags = $ this -> getMetaTags ( TRUE ) ; if ( isset ( $ tags [ 'content-language' ] ) ) return $ tags [ 'content-language' ] ; if ( $ throwException ) throw new RuntimeException ( 'No Language Meta Tag set.' ) ; return "" ; }
Returns Language 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 Language of HTML Document or throws Exception .