1
0
Fork 0
forked from github/pelican

Merge pull request #1267 from mlang/escape-for-html

Run tag names through escape filter to avoid invalid HTML
This commit is contained in:
Justin Mayer 2014-02-28 18:24:52 +01:00
commit e38be6b2ea

View file

@ -1,2 +1,2 @@
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% endfor %}</p>{% endif %}
{% if article.tags %}<p>tags: {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag | escape }}</a> {% endfor %}</p>{% endif %}
{% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">get the pdf</a></p>{% endif %}