Reformatting feeds just for pretty sources

master
Nicolas Ong 2025-02-14 23:05:52 +01:00
parent a7d698b0d7
commit bf26f52bb3
2 changed files with 10 additions and 2 deletions

View File

@ -20,7 +20,11 @@
<link href="<?=$entry->url?>" /> <link href="<?=$entry->url?>" />
<id><?=$entry->id?></id> <id><?=$entry->id?></id>
<updated><?=$entry->date?></updated> <updated><?=$entry->date?></updated>
<content type="html"><![CDATA[<?=$entry->content?>]]></content> <content type="html">
<![CDATA[
<?=$entry->content?>
]]>
</content>
</entry> </entry>
<?php endforeach; ?> <?php endforeach; ?>
</feed> </feed>

View File

@ -11,7 +11,11 @@
<?php foreach ($items as $item): ?> <?php foreach ($items as $item): ?>
<item> <item>
<title><?=$item->title?></title> <title><?=$item->title?></title>
<description><![CDATA[<?=$item->description?>]]></description> <description>
<![CDATA[
<?=$item->description?>
]]>
</description>
<pubDate><?=$item->pub_date?></pubDate> <pubDate><?=$item->pub_date?></pubDate>
<link><?=$item->url?></link> <link><?=$item->url?></link>
<?php if ($has_author_email): ?> <?php if ($has_author_email): ?>