summaryrefslogtreecommitdiff
path: root/utils/rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rss.php')
-rw-r--r--utils/rss.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/rss.php b/utils/rss.php
index f0ea103..6f909d3 100644
--- a/utils/rss.php
+++ b/utils/rss.php
@@ -1,6 +1,7 @@
<?php
include_once("convert.php");
+include_once($UTIL_DIR . "/markdown.php");
class RSSEntry {
public $title;
@@ -73,7 +74,8 @@ class RSS {
fwrite($fp, " <item>\n");
fwrite($fp, " <title>".$newsentry->title."</title>\n");
fwrite($fp, " <link>".$RSS_URL."/?page=".$RSS_TARGET_PAGE."&amp;newsid=".$newsentry->time."</link>\n");
- fwrite($fp, " <description>".$newsentry->description."</description>\n");
+ $content = Markdown(htmlspecialchars_decode($newsentry->description));
+ fwrite($fp, " <description>".$content."</description>\n");
fwrite($fp, " <pubDate>".$this->date($newsentry->time)."</pubDate>\n");
fwrite($fp, " <guid>".$RSS_URL."/?page=".$RSS_TARGET_PAGE."&amp;newsid=".$newsentry->time."</guid>\n");
fwrite($fp, " </item>\n");