Permalink
Browse files

modified: views.py

  • Loading branch information...
1 parent 415ef35 commit 15baf84fa9e15dc331a4ff2cf647abb289b78320 David committed Mar 8, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 views.py
View
3 views.py
@@ -11,6 +11,7 @@
from models import *
from utils import Pagination, getCaptcha
from markdown import markdown
+import templatefilters
d = dict()
@@ -137,7 +138,7 @@ def GET(self):
rss = rss + '<link>http://davidx.me/entry/' + one.slug + '</link>\n'
rss = rss + '<guid>http://davidx.me/entry/' + one.slug + '</guid>\n'
rss = rss + '<pubDate>' + one.createdTime.strftime('%a, %d %b %Y %H:%M:%S GMT') + '</pubDate>\n'
- rss = rss + '<description>' + cgi.escape(markdown(one.content)) + '</description>\n'
+ rss = rss + '<description>' + templatefilters.content(one.content) + '</description>\n'
rss = rss + '</item>\n'
rss = rss + '</channel>\n'

0 comments on commit 15baf84

Please sign in to comment.