mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
parent
51e9298a2b
commit
af572341b3
@ -26,9 +26,9 @@ class AtomFormat extends FormatAbstract{
|
|||||||
$entryUri = isset($item['uri']) ? $this->xml_encode($item['uri']) : '';
|
$entryUri = isset($item['uri']) ? $this->xml_encode($item['uri']) : '';
|
||||||
$entryTimestamp = isset($item['timestamp']) ? $this->xml_encode(date(DATE_ATOM, $item['timestamp'])) : '';
|
$entryTimestamp = isset($item['timestamp']) ? $this->xml_encode(date(DATE_ATOM, $item['timestamp'])) : '';
|
||||||
$entryContent = isset($item['content']) ? $this->xml_encode($this->sanitizeHtml($item['content'])) : '';
|
$entryContent = isset($item['content']) ? $this->xml_encode($this->sanitizeHtml($item['content'])) : '';
|
||||||
$entryEnclosures = "";
|
$entryEnclosures = "";
|
||||||
foreach($item['enclosures'] as $enclosure)
|
foreach($item['enclosures'] as $enclosure)
|
||||||
$entryEnclosures .= "<link rel=\"enclosure\" href=\"".$this->xml_encode($enclosure)."\"/>";
|
$entryEnclosures .= "<link rel=\"enclosure\" href=\"".$this->xml_encode($enclosure)."\"/>";
|
||||||
$entries .= <<<EOD
|
$entries .= <<<EOD
|
||||||
|
|
||||||
<entry>
|
<entry>
|
||||||
|
@ -30,9 +30,9 @@ class MrssFormat extends FormatAbstract {
|
|||||||
$itemUri = isset($item['uri']) ? $this->xml_encode($item['uri']) : '';
|
$itemUri = isset($item['uri']) ? $this->xml_encode($item['uri']) : '';
|
||||||
$itemTimestamp = isset($item['timestamp']) ? $this->xml_encode(date(DATE_RFC2822, $item['timestamp'])) : '';
|
$itemTimestamp = isset($item['timestamp']) ? $this->xml_encode(date(DATE_RFC2822, $item['timestamp'])) : '';
|
||||||
$itemContent = isset($item['content']) ? $this->xml_encode($this->sanitizeHtml($item['content'])) : '';
|
$itemContent = isset($item['content']) ? $this->xml_encode($this->sanitizeHtml($item['content'])) : '';
|
||||||
$entryEnclosures = "";
|
$entryEnclosures = "";
|
||||||
foreach($item['enclosures'] as $enclosure)
|
foreach($item['enclosures'] as $enclosure)
|
||||||
$entryEnclosures .= "<enclosure url=\"".xml_encode($enclosure)."\"/>";
|
$entryEnclosures .= "<enclosure url=\"".$this->xml_encode($enclosure)."\"/>";
|
||||||
$items .= <<<EOD
|
$items .= <<<EOD
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user