]> git.quilime.com - clmpr.git/commitdiff
Fixed character encoding in RSS
authorGabriel Dunne <gdunne@quilime.com>
Mon, 19 Dec 2011 02:35:47 +0000 (18:35 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Mon, 19 Dec 2011 02:35:47 +0000 (18:35 -0800)
rss.php

diff --git a/rss.php b/rss.php
index d967e459cc2ee4928781bb7a5c52a9710bf6313c..027ad22e3d0e104c2557e2ff79ef20f514cccbb2 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -9,9 +9,9 @@
 
        <?php for($i = 0; $row = $q->fetch(); $i++ ): ?>
        <item>
-           <title><?php echo htmlentities($row['title']); ?></title>
-           <link><?php echo $row['url'] ?></link>
-           <description><?php echo $row['description'] ?></description>
+           <title><?php echo htmlspecialchars($row['title']); ?></title>
+           <link><?php echo htmlspecialchars($row['url']) ?></link>
+           <description><![CDATA[<?php echo htmlspecialchars($row['description']); ?>]]></description>
            <tags><?php echo $row['tags'] ?></tags>
            <pubDate><?php echo date('r', strtotime($row['date'])); ?></pubDate>
        </item>