From 96bdff60f069be30fa0d720bc305936ccb70a677 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 10 Dec 2010 12:05:48 +0100 Subject: Allow more tag (
) in the sanitisation (closes #288) --- chimere/rss/templates/rss_descr.html | 2 +- chimere/templates/detail.html | 2 +- chimere/templates/welcome.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chimere/rss/templates/rss_descr.html b/chimere/rss/templates/rss_descr.html index 7915383..f425e01 100644 --- a/chimere/rss/templates/rss_descr.html +++ b/chimere/rss/templates/rss_descr.html @@ -3,6 +3,6 @@
{% if obj.picture %}{{obj.name}}{%endif%}
{% for property in obj.getProperties %} -

{{ property.value|sanitize:"p b a:href ul li ol h1 h2 h3 h4"|safe }}

+

{{ property.value|sanitize:"p b i br a:href ul li ol h1 h2 h3 h4"|safe }}

{% endfor %}
diff --git a/chimere/templates/detail.html b/chimere/templates/detail.html index baa13b4..6df7e76 100644 --- a/chimere/templates/detail.html +++ b/chimere/templates/detail.html @@ -9,7 +9,7 @@ {% if marker.end_date %} - {{marker.end_date|date:"D d M Y"}}

{% endif %} {% endif %} {% for property in marker.getProperties %} -

{{ property.value|sanitize:"p b a:href ul li ol h1 h2 h3 h4"|safe}}

+

{{ property.value|sanitize:"p b i br a:href ul li ol h1 h2 h3 h4"|safe}}

{% endfor %} {% if share_networks %} {% if simple %}{% trans "Share on"%}{% for share_network in share_networks %} diff --git a/chimere/templates/welcome.html b/chimere/templates/welcome.html index d568851..448a92d 100644 --- a/chimere/templates/welcome.html +++ b/chimere/templates/welcome.html @@ -13,7 +13,7 @@ {% else %}

{{news.name}} – {{ news.start_date }}{% if news.end_date %} - {{ news.end_date }}{% endif %}

{% for property in news.getProperties %} -

{{ property.value|sanitize:"p b a:href ul li ol h1 h2 h3 h4"|safe }}

+

{{ property.value|sanitize:"p b i br a:href ul li ol h1 h2 h3 h4"|safe }}

{% endfor %} {% endif %} -- cgit v1.2.3