@ -3,7 +3,6 @@ import logging
import random
import urllib
import bleach
from django import template
from django.conf import settings
from django.db.models import Q
@ -45,7 +44,6 @@ def datetimeformat(data):
@register.filter()
@stringfilter
def custom_markdown(content):
content = bleach.clean(content)
return mark_safe(CommonMarkdown.get_markdown(content))
@ -60,7 +60,9 @@
<hr class="break_line"/>
{% endif %}
<div class="article">
{{ article.body|custom_markdown|escape }}
</div>