diff --git a/formats/HtmlFormat.php b/formats/HtmlFormat.php index c52cf96..7859916 100644 --- a/formats/HtmlFormat.php +++ b/formats/HtmlFormat.php @@ -12,39 +12,61 @@ class HtmlFormat extends FormatAbstract{ $extraInfos = $this->getExtraInfos(); $title = htmlspecialchars($extraInfos['name']); $uri = htmlspecialchars($extraInfos['uri']); + $atomquery = str_replace('format=HtmlFormat', 'format=AtomFormat', htmlentities($_SERVER['QUERY_STRING'])); $entries = ''; foreach($this->getDatas() as $data){ $entryUri = is_null($data->uri) ? $uri : $data->uri; $entryTitle = is_null($data->title) ? '' : $this->sanitizeHtml(strip_tags($data->title)); - $entryTimestamp = is_null($data->timestamp) ? '' : '' . date(DATE_ATOM, $data->timestamp) . ''; + $entryTimestamp = is_null($data->timestamp) ? '' : ''; $entryContent = is_null($data->content) ? '' : '
' . $this->sanitizeHtml($data->content). '
'; $entries .= <<