Example #1
0
 public function setBody($v)
 {
     parent::setBody($v);
     require_once 'markdown.php';
     // strip all HTML tags
     $v = htmlentities($v, ENT_QUOTES, 'UTF-8');
     $this->setHtmlBody(markdown($v));
 }
Example #2
0
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new AnswerPeer();
     }
     return self::$peer;
 }