public function sendResponse(IResponse $response) { if ($this->tidy->isEnabled() && $response instanceof TextResponse && $response->getSource() instanceof ITemplate) { $response = new TidyResponse($response, $this->tidy); } parent::sendResponse($response); }
public function send(Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse) { ob_start(); $this->response->send($httpRequest, $httpResponse); $html = ob_get_contents(); ob_end_clean(); echo $this->tidy->process($html); }