Improved rss description to use html tags (like formatting, images, ...)
This commit is contained in:
parent
5c5c0cdf0b
commit
6ed3f5009f
10
blogthon.cgi
10
blogthon.cgi
@ -263,14 +263,14 @@ elif feed_display == "rss":
|
||||
print ' <link>' + blog_url + '?p=' + title + '</link>'
|
||||
print ' <guid>' + title_md5sum + '</guid>'
|
||||
print ' <pubDate>' + date + '</pubDate>'
|
||||
print ' <description>'
|
||||
content = open(str(entries[i][1]), 'r')
|
||||
rss_description= ''
|
||||
for h in xrange(0, int(feed_preview)):
|
||||
rss_line = content.readline().strip()
|
||||
if rss_line != '':
|
||||
print ' ' + rss_line
|
||||
line = content.readline().strip()
|
||||
if line:
|
||||
rss_description = rss_description + line + '<br />'
|
||||
content.close()
|
||||
print ' </description>'
|
||||
print ' <description><![CDATA[' + rss_description + ']]></description>'
|
||||
print ' </item>'
|
||||
print ' </channel>'
|
||||
print '</rss>'
|
||||
|
Loading…
Reference in New Issue
Block a user