Skip to content

Commit

Permalink
Gum: HTML-escape tag names when rendering them
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhowie committed Jul 19, 2013
1 parent 6e0954d commit 59779ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gum/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{% if article.tags %}
<span>Tagged as : </span>
{% for tag in article.tags %}
<a class="danger label" href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>
<a class="danger label" href="{{ SITEURL }}/{{ tag.url }}">{{ tag|e }}</a>
{% endfor %}
{% endif %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion gum/templates/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h4>Tags</h4>
{% if tags %}
<ul>
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0|e }}</a></li>
{% endfor %}
</ul>
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion gum/templates/tag.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
{% block title %}{{ SITENAME }} - {{ tag|e }}{% endblock %}
2 changes: 1 addition & 1 deletion gum/templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
<i class="icon-tag icon-large"></i>{{ tag.0 }}
<i class="icon-tag icon-large"></i>{{ tag.0|e }}
</a>
</li>
{% endfor %}
Expand Down

0 comments on commit 59779ff

Please sign in to comment.