# HG changeset patch # User neko259 # Date 2017-10-27 09:11:35 # Node ID 2a7c5d133ec5ce54ad4497e6bd847b89940c4c45 # Parent d2215f6eab35707316d0a932184842425db24ebb Disable autoescape where not needed diff --git a/boards/templates/boards/base.html b/boards/templates/boards/base.html --- a/boards/templates/boards/base.html +++ b/boards/templates/boards/base.html @@ -13,7 +13,7 @@ {% if rss_url %} - + {% endif %} - @@ -53,7 +53,7 @@ {% trans 'Notifications' %} {% ifnotequal new_notifications_count 0 %} - ({{ new_notifications_count }}) + ({{ new_notifications_count|safe }}) {% endifnotequal %} {% endif %} @@ -82,7 +82,7 @@ {{ site_name }} {{ version }} {% block metapanel %}{% endblock %} {% if rss_url %} - [RSS] + [RSS] {% endif %} [{% trans 'Admin' %}] [{% trans 'New threads' %}] diff --git a/boards/templates/boards/landing.html b/boards/templates/boards/landing.html --- a/boards/templates/boards/landing.html +++ b/boards/templates/boards/landing.html @@ -5,13 +5,14 @@ {% load board %} {% block head %} - {{ site_name }} + {{ site_name|safe }} {% endblock %} {% block content %} + {% autoescape off %}
- {{ section_str|safe }} + {{ section_str }}

{% if latest_threads %} @@ -24,11 +25,12 @@
{{ title }}
{% endif %} {% endwith %} -
{{ op.thread.get_sections_str|safe }}
-
{{ op.get_link_view|safe }} +{{ op.today_post_count }}
+
{{ op.thread.get_sections_str }}
+
{{ op.get_link_view }} +{{ op.today_post_count }}
{% endfor %} {% endif %} + {% endautoescape %} {% endblock %}