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)); }
public function getPeer() { if (self::$peer === null) { self::$peer = new AnswerPeer(); } return self::$peer; }