public function renderContent($id, $buffer = null) { $result = parent::renderContent($id, $buffer); $purifier = new HTMLPurifier(); $result = $purifier->purify($result); return $result; }
public function __construct($name) { parent::__construct($name); $this->setContentFile(RAPTOR_DATA_DIR . '/comments.json'); }