getExtraInfos(); $title = htmlspecialchars($extraInfos['name']); $uri = htmlspecialchars($extraInfos['uri']); $atomquery = str_replace('format=Html', 'format=Atom', htmlentities($_SERVER['QUERY_STRING'])); $mrssquery = str_replace('format=Html', 'format=Mrss', htmlentities($_SERVER['QUERY_STRING'])); $entries = ''; foreach($this->getItems() as $item){ $entryAuthor = isset($item['author']) ? '

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

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