public function isHtml() {
		$ext = $this->_controller->request->param('ext');
		if (empty($ext)) {
			return true;
		}

		$prefers = $this->_controller->RequestHandler->prefers();
		if (empty($prefers)) {
			$prefers = 'html';
		}

		$responseMimeType = $this->_controller->response->getMimeType($prefers);
		if (!$responseMimeType) {
			return false;
		}

		return in_array('text/html', (array)$responseMimeType);
	}
public function isHtml() {
		$ext = $this->_controller->request->param('ext');
		if (empty($ext)) {
			return true;
		}

		$prefers = $this->_controller->RequestHandler->prefers();
		if (empty($prefers)) {
			$prefers = 'html';
		}

		$responseMimeType = $this->_controller->response->getMimeType($prefers);
		if (!$responseMimeType) {
			return false;
		}

		return in_array('text/html', (array)$responseMimeType);
	}
public function isHtml ( ) { $ ext = $ this -> _controller -> request -> param ( 'ext' ) ; if ( empty ( $ ext ) ) { return true ; } $ prefers = $ this -> _controller -> RequestHandler -> prefers ( ) ; if ( empty ( $ prefers ) ) { $ prefers = 'html' ; } $ responseMimeType = $ this -> _controller -> response -> getMimeType ( $ prefers ) ; if ( ! $ responseMimeType ) { return false ; } return in_array ( 'text/html' , ( array ) $ responseMimeType ) ; }
Checking the response is HTML.

@return bool True if response is HTML. False otherwise.
Checking the response is HTML .