Skip to content

Commit

Permalink
修复部分bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liangliangyy committed Oct 8, 2022
1 parent 86a2450 commit 77d85d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions templates/comments/tags/comment_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
<div>{{ comment_item.created_time }}</div>
<div>回复给:@{{ comment_item.author.parent_comment.username }}</div>
</div>
{% autoescape on %}
<p>{{ comment_item.body|custom_markdown }}</p>
{% endautoescape %}
<p>{{ comment_item.body|escape|custom_markdown }}</p>
<div class="reply"><a rel="nofollow" class="comment-reply-link"
href="javascript:void(0)"
onclick="do_reply({{ comment_item.pk }})"
Expand Down
2 changes: 1 addition & 1 deletion templates/comments/tags/comment_item_tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{% endif %}
</p>

<p>{{ comment_item.body|custom_markdown }}</p>
<p>{{ comment_item.body|escape|custom_markdown }}</p>

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

0 comments on commit 77d85d3

Please sign in to comment.