コード例 #1
0
ファイル: preview.php プロジェクト: icybee/module-comments
 protected function process()
 {
     $contents = $this->request['contents'];
     $contents = \Textmark_Parser::parse($contents);
     return \Icybee\Kses::sanitizeComment($contents);
 }
コード例 #2
0
ファイル: comment.php プロジェクト: icybee/module-comments
 /**
  * Renders the comment into a HTML string.
  *
  * @return string
  */
 public function __toString()
 {
     $str = Textmark_Parser::parse($this->contents);
     return \Icybee\Kses::sanitizeComment($str);
 }