Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

modified: views.py

  • Loading branch information...
commit 15baf84fa9e15dc331a4ff2cf647abb289b78320 1 parent 415ef35
David authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  views.py
3  views.py
@@ -11,6 +11,7 @@
11 11 from models import *
12 12 from utils import Pagination, getCaptcha
13 13 from markdown import markdown
  14 +import templatefilters
14 15
15 16 d = dict()
16 17
@@ -137,7 +138,7 @@ def GET(self):
137 138 rss = rss + '<link>http://davidx.me/entry/' + one.slug + '</link>\n'
138 139 rss = rss + '<guid>http://davidx.me/entry/' + one.slug + '</guid>\n'
139 140 rss = rss + '<pubDate>' + one.createdTime.strftime('%a, %d %b %Y %H:%M:%S GMT') + '</pubDate>\n'
140   - rss = rss + '<description>' + cgi.escape(markdown(one.content)) + '</description>\n'
  141 + rss = rss + '<description>' + templatefilters.content(one.content) + '</description>\n'
141 142 rss = rss + '</item>\n'
142 143
143 144 rss = rss + '</channel>\n'

0 comments on commit 15baf84

Please sign in to comment.
Something went wrong with that request. Please try again.