コード例 #1
0
ファイル: parser.php プロジェクト: fritzdenim/pangMoves
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }