mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
formats: Use same general entity generation order
This commit is contained in:
@@ -21,13 +21,11 @@ class MrssFormat extends FormatAbstract{
|
||||
|
||||
$items = '';
|
||||
foreach($this->getDatas() as $data){
|
||||
$itemAuthor = is_null($data->author) ? '' : $this->xml_encode($data->author);
|
||||
$itemTitle = strip_tags(is_null($data->title) ? '' : $this->xml_encode($data->title));
|
||||
$itemUri = is_null($data->uri) ? '' : $this->xml_encode($data->uri);
|
||||
$itemAuthor = is_null($data->author) ? $title : $this->xml_encode($data->author);
|
||||
$itemTimestamp = is_null($data->timestamp) ? '' : $this->xml_encode(date(DATE_RFC2822, $data->timestamp));
|
||||
// We prevent content from closing the CDATA too early.
|
||||
$itemContent = is_null($data->content) ? '' : $this->xml_encode($this->sanitizeHtml($data->content));
|
||||
|
||||
$items .= <<<EOD
|
||||
|
||||
<item>
|
||||
|
Reference in New Issue
Block a user