We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52b110c commit 180a9e2Copy full SHA for 180a9e2
blog/templatetags/blog_tags.py
@@ -3,7 +3,6 @@
3
import random
4
import urllib
5
6
-import bleach
7
from django import template
8
from django.conf import settings
9
from django.db.models import Q
@@ -45,7 +44,6 @@ def datetimeformat(data):
45
44
@register.filter()
46
@stringfilter
47
def custom_markdown(content):
48
- content = bleach.clean(content)
49
return mark_safe(CommonMarkdown.get_markdown(content))
50
51
templates/blog/tags/article_info.html
@@ -60,7 +60,9 @@ <h1 class="entry-title">
60
<hr class="break_line"/>
61
{% endif %}
62
<div class="article">
63
- {{ article.body|custom_markdown|escape }}
+
64
+ {{ article.body|custom_markdown|escape }}
65
66
</div>
67
68
0 commit comments