summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-rw-r--r--news/models.py2
-rw-r--r--news/views.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/news/models.py b/news/models.py
index 40238cd..55d3631 100644
--- a/news/models.py
+++ b/news/models.py
@@ -22,7 +22,7 @@ class News(models.Model):
def html(self):
return mark_safe(markdown.markdown(
- self.content, safe_mode=True, enable_attributes=False))
+ self.content, safe_mode=False, enable_attributes=False))
def __unicode__(self):
return self.title
diff --git a/news/views.py b/news/views.py
index 74bec05..5218280 100644
--- a/news/views.py
+++ b/news/views.py
@@ -76,7 +76,7 @@ def view_redirect(request, object_id):
@require_POST
def preview(request):
data = request.POST.get('data', '')
- markup = markdown.markdown(data, safe_mode=True, enable_attributes=False)
+ markup = markdown.markdown(data, safe_mode=False, enable_attributes=False)
return HttpResponse(markup)
# vim: set ts=4 sw=4 et: