Some safe/escape fixes for Atom feeds

- Legacy-Id: 1835
This commit is contained in:
Pasi Eronen 2009-11-08 02:23:36 +00:00
parent aef93342bf
commit 1de21aa5c8
4 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
[{{ obj.get_username }}] {{ obj.comment_text|removetags:"b"|truncatewords:"15" }}
{% load ietf_filters %}
[{{ obj.get_username }}] {{ obj.comment_text|removetags:"b"|truncatewords:"15"|safe }}
{% if obj.ballot %}[[ IESG {{ obj.get_ballot_display.upper }} ]]{% endif %}
{% if not obj.document.rfc_flag %}[ version {{ obj.version }} ]{% endif %}

View file

@ -0,0 +1 @@
{{ obj|escape }}

View file

@ -0,0 +1 @@
{% load ietf_filters %}{{ obj|safe }}

View file

@ -1,6 +1,7 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% load ietf_filters %}
{% if obj.by_secretariat %}
Liaison statement submitted by email from {{ obj.from_body }} to {{ obj.submitter_name }} on {{ obj.submitted_date }}
Liaison statement submitted by email from {{ obj.from_body|safe }} to {{ obj.submitter_name|safe }} on {{ obj.submitted_date }}
{% else %}
{{ obj.title }}
{{ obj.title|safe }}
{% endif %}