mirror of
https://github.com/Chouchen/ShikiryuRSS.git
synced 2026-11-24 13:01:18 +01:00
🚧 Add some validations and corrections
This commit is contained in:
1 parent
5de5993e2b
commit
f1816dec0c
10 files changed
+48
-26
No files matched your search
@@ -17,6 +17,8 @@ class SRSSBuilder extends DomDocument
|
||||
$root->setAttribute('version', '2.0');
|
||||
$channel = $this->createElement('channel');
|
||||
|
||||
$srss->channel->generator = 'Shikiryu RSS';
|
||||
|
||||
$this->appendChannelToDom($srss->channel, $channel);
|
||||
|
||||
$this->appendItemsToDom($srss->items, $channel);
|
||||
@@ -24,7 +26,6 @@ class SRSSBuilder extends DomDocument
|
||||
$root->appendChild($channel);
|
||||
$this->appendChild($root);
|
||||
$this->encoding = 'UTF-8';
|
||||
$srss->generator = 'Shikiryu RSS';
|
||||
$this->formatOutput = true;
|
||||
$this->preserveWhiteSpace = false;
|
||||
// $docs = 'http://www.scriptol.fr/rss/RSS-2.0.html';
|
||||
|
||||
Reference in new issue
Block a user