getExtraInfos(); $title = htmlspecialchars($extraInfos['name']); $uri = htmlspecialchars($extraInfos['uri']); $atomquery = str_replace('format=HtmlFormat', 'format=AtomFormat', htmlentities($_SERVER['QUERY_STRING'])); $mrssquery = str_replace('format=HtmlFormat', 'format=MrssFormat', htmlentities($_SERVER['QUERY_STRING'])); $entries = ''; foreach($this->getDatas() as $data){ $entryAuthor = is_null($data->author) ? '' : '

by: ' . $data->author . '

'; $entryTitle = is_null($data->title) ? '' : $this->sanitizeHtml(strip_tags($data->title)); $entryUri = is_null($data->uri) ? $uri : $data->uri; $entryTimestamp = is_null($data->timestamp) ? '' : ''; $entryContent = is_null($data->content) ? '' : '
' . $this->sanitizeHtml($data->content). '
'; $entries .= <<

{$entryTitle}

{$entryTimestamp} {$entryAuthor} {$entryContent} EOD; } /* Data are prepared, now let's begin the "MAGIE !!!" */ $toReturn = << {$title}

{$title}

{$entries} EOD; return $toReturn; } public function display() { $this ->setContentType('text/html; charset=' . $this->getCharset()) ->callContentType(); return parent::display(); } }