diff gpp/comments/views.py @ 136:d203a4a986d2

Markitup preview function wasn't working correctly due to the user data being escaped before going into the markdown and smiley filters.
author Brian Neal <bgneal@gmail.com>
date Fri, 27 Nov 2009 03:50:34 +0000
parents dbd703f7d63a
children 8c1832b9d815
line wrap: on
line diff
--- a/gpp/comments/views.py	Fri Nov 27 03:30:15 2009 +0000
+++ b/gpp/comments/views.py	Fri Nov 27 03:50:34 2009 +0000
@@ -14,6 +14,7 @@
 from django.views.decorators.http import require_POST
 
 from core.functions import email_admins
+from core.markup import site_markup
 from comments.forms import CommentForm
 from comments.models import Comment
 from comments.models import CommentFlag
@@ -121,6 +122,6 @@
         return HttpResponseBadRequest('No data')
 
     return render_to_response('comments/markdown_preview.html', {
-        'data': data,
+        'data': site_markup(data),
         },
         context_instance = RequestContext(request))