diff options
| author | deva <deva> | 2010-02-22 11:52:06 +0000 | 
|---|---|---|
| committer | deva <deva> | 2010-02-22 11:52:06 +0000 | 
| commit | 23024cd1346f75acf38e1cef9536ac824380e4ed (patch) | |
| tree | 87648f12b87c5f398fec7a6fdba74ce9a568beea | |
| parent | 7fea3a6e3d7e78e943b6ee19f3d48b3414b7542f (diff) | |
Make markdown conversion.
| -rw-r--r-- | utils/rss.php | 4 | 
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."&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."&newsid=".$newsentry->time."</guid>\n");  			fwrite($fp, "      </item>\n");  | 
