diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index 38e02e1..8e09137 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -26,9 +26,9 @@ class AtomFormat extends FormatAbstract{ $entryUri = isset($item['uri']) ? $this->xml_encode($item['uri']) : ''; $entryTimestamp = isset($item['timestamp']) ? $this->xml_encode(date(DATE_ATOM, $item['timestamp'])) : ''; $entryContent = isset($item['content']) ? $this->xml_encode($this->sanitizeHtml($item['content'])) : ''; - $entryEnclosures = ""; - foreach($item['enclosures'] as $enclosure) - $entryEnclosures .= "xml_encode($enclosure)."\"/>"; + $entryEnclosures = ""; + foreach($item['enclosures'] as $enclosure) + $entryEnclosures .= "xml_encode($enclosure)."\"/>"; $entries .= << diff --git a/formats/MrssFormat.php b/formats/MrssFormat.php index 80d2b2b..52ee86f 100644 --- a/formats/MrssFormat.php +++ b/formats/MrssFormat.php @@ -30,9 +30,9 @@ class MrssFormat extends FormatAbstract { $itemUri = isset($item['uri']) ? $this->xml_encode($item['uri']) : ''; $itemTimestamp = isset($item['timestamp']) ? $this->xml_encode(date(DATE_RFC2822, $item['timestamp'])) : ''; $itemContent = isset($item['content']) ? $this->xml_encode($this->sanitizeHtml($item['content'])) : ''; - $entryEnclosures = ""; - foreach($item['enclosures'] as $enclosure) - $entryEnclosures .= ""; + $entryEnclosures = ""; + foreach($item['enclosures'] as $enclosure) + $entryEnclosures .= "xml_encode($enclosure)."\"/>"; $items .= <<