Skip to content

Commit 5815ed4

Browse files
committed
Merged Adam's safe/escape template fixes (Django 1.x)
- Legacy-Id: 1818
1 parent 2c1d736 commit 5815ed4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{# Copyright The IETF Trust 2007, All Rights Reserved #}
22
{% load ietf_filters %}
3-
{{ obj.comment_text|format_textarea|truncatewords_html:"20" }}
3+
{{ obj.comment_text|format_textarea|safe|truncatewords_html:"20" }}

ietf/templates/idtracker/idinternal_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ <h1>Comment Log [<a href="/feed/comments/{{ object.document.filename }}/">atom f
203203
<span class="{{ comment.get_ballot_display }}">[IESG Evaluation {{ comment.get_ballot_display|upper }}] </span>
204204
{% endif %}
205205

206-
{{ comment.comment_text|removetags:"b br"|truncatewords_html:"20"|escape }}
206+
{{ comment.comment_text|removetags:"b br"|truncatewords_html:"20"|safe }}
207207
[<a href="{{ comment.get_absolute_url }}">more</a>]
208208
</td>
209209

0 commit comments

Comments
 (0)