/** * Returns processed html to be sent to the browser * * @return string */ public function getHtml() { $sHtml = parent::getHtml(); if ($this->sBodyHtml != '') { $sHtml = preg_replace($this->getBodyRegex(), strtr($this->sBodyHtml, array('\\' => '\\\\', '$' => '\\$')), $sHtml, 1); if (is_null($sHtml) || $sHtml == '') { throw new Exception('Error occured while trying to get HTML'); } } return $sHtml; }
/** * Returns processed html to be sent to the browser * * @return string */ public function getHtml() { $sHtml = parent::getHtml(); if ($this->sBodyHtml != '') { $sHtml = preg_replace($this->getBodyRegex(), JchOptimizeHelper::cleanReplacement($this->sBodyHtml), $sHtml, 1); if (is_null($sHtml) || $sHtml == '') { throw new Exception('Error occured while trying to get HTML'); } } return $sHtml; }