Skip to content

Commit

Permalink
Removed HTML escape
Browse files Browse the repository at this point in the history
  • Loading branch information
sametmax committed Jan 18, 2014
1 parent d9df17e commit 7de31a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/app8_base/templates/app8_base/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% block header %}
<header class="page-header">
<p><a href="..">Back</a></p>
<h1>{% block title %}{% endblock%}</h1>

<h1>{% block title %}Example{% endblock%}</h1>
</header>
{% endblock %}
7 changes: 4 additions & 3 deletions apps/app8_base/templates/app8_base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
<header class="page-header">
<p><a href="/">Home</a></p>

<h1>{{ title }}</h1>
{# 'safe' will prevent automatic HTML escaping #}
<h1>{{ title|safe }}</h1>
</header>



{% if header %}
<p>{{ header }}</p>
<p>{{ header|safe }}</p>
{% endif %}

{% endblock %}
Expand All @@ -52,7 +53,7 @@ <h1>{{ title }}</h1>
{% block footer %}

{% if footer %}
<p>{{ footer }}</p>
<p>{{ footer|safe }}</p>
{% endif %}

{% endblock %}

0 comments on commit 7de31a9

Please sign in to comment.