public function rssAction() { // Tidak pake layout $this->_helper->layout->disableLayout(); // Model $eventDb = new Model_DbTable_Event(); $lang_id = $this->_languageId; // Data $eventQuery = $eventDb->getAllWithDescForRss($lang_id, 10); $event = $eventDb->fetchAll($eventQuery); for ($i = 0; $i < count($event); $i++) { $string = $event[$i]['name']; $string = str_replace('“', ' ', $string); $string = str_replace('”', ' ', $string); $string = str_replace('�', ' ', $string); $string = str_replace('�', ' ', $string); $news[$i]['name'] = $this->xmlEntities(htmlentities($string, ENT_QUOTES)); $string = $event[$i]['description']; $string = str_replace('“', ' ', $string); $string = str_replace('”', ' ', $string); $string = str_replace('�', ' ', $string); $string = str_replace('�', ' ', $string); $news[$i]['description'] = $this->xmlEntities(htmlentities($news[$i]['content'], ENT_QUOTES)); } $this->view->data = $event; }