From 524d7811c8ba66b1756a1f599dd894e04c6b8cf9 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 27 Jan 2014 11:00:28 +0100 Subject: explicitly mark a string as safe HTML with |safe --- pyaggr3g470r/templates/article.html | 2 +- pyaggr3g470r/templates/articles.html | 6 +++--- pyaggr3g470r/templates/favorites.html | 6 +++--- pyaggr3g470r/templates/home.html | 6 +++--- pyaggr3g470r/templates/search.html | 6 +++--- pyaggr3g470r/templates/unread.html | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/article.html b/pyaggr3g470r/templates/article.html index 8d4c2695..54c9b9a2 100644 --- a/pyaggr3g470r/templates/article.html +++ b/pyaggr3g470r/templates/article.html @@ -6,7 +6,7 @@ {% block content %}
-

{{ article.title }}

+

{{ article.title|safe }}

{% if article.like %} diff --git a/pyaggr3g470r/templates/articles.html b/pyaggr3g470r/templates/articles.html index f462f28b..eb4701d7 100644 --- a/pyaggr3g470r/templates/articles.html +++ b/pyaggr3g470r/templates/articles.html @@ -2,7 +2,7 @@ {% block content %}
-

{{ feed.title }}

+

{{ feed.title|safe }}

{{ feed.articles|count }} articles.

@@ -15,7 +15,7 @@ {% for n in range(number, number+3) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
@@ -27,7 +27,7 @@ {% for n in range(feed.articles|length-(feed.articles|length % 3), feed.articles|length) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
diff --git a/pyaggr3g470r/templates/favorites.html b/pyaggr3g470r/templates/favorites.html index 1c8991f3..fb0b3220 100644 --- a/pyaggr3g470r/templates/favorites.html +++ b/pyaggr3g470r/templates/favorites.html @@ -7,7 +7,7 @@ {% for feed in feeds|sort(attribute="title") %}
-

{{ feed.title }}

+

{{ feed.title|safe }}

@@ -18,7 +18,7 @@ {% for n in range(number, number+3) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
@@ -30,7 +30,7 @@ {% for n in range(feed.articles|length-(feed.articles|length % 3), feed.articles|length) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index ed19c5c9..ad6eb426 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -7,7 +7,7 @@ {% for feed in feeds|sort(attribute="title") %}
-

{{ feed.title }}

+

{{ feed.title|safe }}

@@ -21,7 +21,7 @@ {% for n in range(number, number+3) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
@@ -33,7 +33,7 @@ {% for n in range(feed.articles|length-(feed.articles|length % 3), feed.articles|length) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
diff --git a/pyaggr3g470r/templates/search.html b/pyaggr3g470r/templates/search.html index c89e2d90..8ae38811 100644 --- a/pyaggr3g470r/templates/search.html +++ b/pyaggr3g470r/templates/search.html @@ -8,7 +8,7 @@ {% for feed in feeds|sort(attribute="title") %}
-

{{ feed.title }}

+

{{ feed.title|safe }}

@@ -19,7 +19,7 @@ {% for n in range(number, number+3) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
@@ -31,7 +31,7 @@ {% for n in range(feed.articles|length-(feed.articles|length % 3), feed.articles|length) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
diff --git a/pyaggr3g470r/templates/unread.html b/pyaggr3g470r/templates/unread.html index 25cfb79c..ed6aae19 100644 --- a/pyaggr3g470r/templates/unread.html +++ b/pyaggr3g470r/templates/unread.html @@ -7,7 +7,7 @@ {% for feed in feeds|sort(attribute="title") %}
-

{{ feed.title }}

+

{{ feed.title|safe }}

@@ -19,7 +19,7 @@ {% for n in range(number, number+3) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
@@ -31,7 +31,7 @@ {% for n in range(feed.articles|length-(feed.articles|length % 3), feed.articles|length) %}
{% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title }} + {{ feed.articles[n].title|safe }} {% if feed.articles[n].readed %}

{% else %}{% endif %}
{{ feed.articles[n].date }}
-- cgit