File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 24
24
< div > {{ comment_item.created_time }}</ div >
25
25
< div > 回复给:@{{ comment_item.author.parent_comment.username }}</ div >
26
26
</ div >
27
- {% autoescape on %}
28
- < p > {{ comment_item.body|custom_markdown }}</ p >
29
- {% endautoescape %}
27
+ < p > {{ comment_item.body|escape|custom_markdown }}</ p >
30
28
< div class ="reply "> < a rel ="nofollow " class ="comment-reply-link "
31
29
href ="javascript:void(0) "
32
30
onclick ="do_reply({{ comment_item.pk }}) "
Original file line number Diff line number Diff line change 32
32
{% endif %}
33
33
</ p >
34
34
35
- < p > {{ comment_item.body|custom_markdown }}</ p >
35
+ < p > {{ comment_item.body|escape| custom_markdown }}</ p >
36
36
37
37
< div class ="reply "> < a rel ="nofollow " class ="comment-reply-link "
38
38
href ="javascript:void(0) "
You can’t perform that action at this time.
0 commit comments