Skip to content

Commit 888c0cf

Browse files
authored
Merge pull request #610 from liangliangyy/dev
修复部分bug
2 parents b0eda75 + 77d85d3 commit 888c0cf

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

templates/comments/tags/comment_item.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
<div>{{ comment_item.created_time }}</div>
2525
<div>回复给:@{{ comment_item.author.parent_comment.username }}</div>
2626
</div>
27-
{% autoescape on %}
28-
<p>{{ comment_item.body|custom_markdown }}</p>
29-
{% endautoescape %}
27+
<p>{{ comment_item.body|escape|custom_markdown }}</p>
3028
<div class="reply"><a rel="nofollow" class="comment-reply-link"
3129
href="javascript:void(0)"
3230
onclick="do_reply({{ comment_item.pk }})"

templates/comments/tags/comment_item_tree.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
{% endif %}
3333
</p>
3434

35-
<p>{{ comment_item.body|custom_markdown }}</p>
35+
<p>{{ comment_item.body|escape|custom_markdown }}</p>
3636

3737
<div class="reply"><a rel="nofollow" class="comment-reply-link"
3838
href="javascript:void(0)"

0 commit comments

Comments
 (0)