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:
commit
e38be6b2ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue