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 = isset($data['author']) ? '

by: ' . $data['author'] . '

' : ''; $entryTitle = isset($data['title']) ? $this->sanitizeHtml(strip_tags($data['title'])) : ''; $entryUri = isset($data['uri']) ? $data['uri'] : $uri; $entryTimestamp = isset($data['timestamp']) ? '' : ''; $entryContent = isset($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(); } }