summaryrefslogtreecommitdiff
path: root/utils/rss.php
diff options
context:
space:
mode:
authordeva <deva>2010-02-22 11:52:06 +0000
committerdeva <deva>2010-02-22 11:52:06 +0000
commit23024cd1346f75acf38e1cef9536ac824380e4ed (patch)
tree87648f12b87c5f398fec7a6fdba74ce9a568beea /utils/rss.php
parent7fea3a6e3d7e78e943b6ee19f3d48b3414b7542f (diff)
Make markdown conversion.
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");