]> git.quilime.com - clmpr.git/commitdiff
Encoding RSS
authorGabriel Dunne <gdunne@quilime.com>
Mon, 19 Dec 2011 02:11:59 +0000 (18:11 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Mon, 19 Dec 2011 02:11:59 +0000 (18:11 -0800)
rss.php

diff --git a/rss.php b/rss.php
index 8ae7b6ce6ff08180648410f1678d6b271d01e3ac..5e34ab1888e7ff2ec558daece441b3bf091d5262 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -1,5 +1,5 @@
 <?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
-<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
+<rss version="2.0">
 <channel>
 
        <title>clmpr.com <?php echo $endpoint ?></title>
@@ -9,10 +9,11 @@
 
        <?php for($i = 0; $row = $q->fetch(); $i++ ): ?>
        <item>
-           <title><?php echo htmlentities($row['title']); ?></title>
+           <title><?php echo urlencode($row['title']); ?></title>
            <link><?php echo $row['url'] ?></link>
+           <link><?php echo htmlentities($row['description']) ?></link>
+           <link><?php echo implode(" ", $row['tags']) ?></link>
            <pubDate><?php echo date('r', strtotime($row['date'])); ?></pubDate>
-
        </item> 
 
        <?php endfor; ?>