public function html($id)
    {
        $model = Report::query()->find($id)->first();
        $html  = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $model->html);
        $html  = preg_replace('#<link(.*?)>#is', '', $html);
        return $this->presenter->html($html);
    }
public function html($id)
    {
        $model = Report::query()->find($id)->first();
        $html  = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $model->html);
        $html  = preg_replace('#<link(.*?)>#is', '', $html);
        return $this->presenter->html($html);
    }
public function html ( $ id ) { $ model = Report :: query ( ) -> find ( $ id ) -> first ( ) ; $ html = preg_replace ( '#<script(.*?)>(.*?)</script>#is' , '' , $ model -> html ) ; $ html = preg_replace ( '#<link(.*?)>#is' , '' , $ html ) ; return $ this -> presenter -> html ( $ html ) ; }
preview report as html content

@param mixed $id
@return View
preview report as html content