Remove double escaping

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
CommanderRoot 2017-06-29 23:26:11 +02:00 committed by GitHub
parent 0d2e48b644
commit dfb33462bb

View File

@ -3,7 +3,7 @@
{% if url is defined and url is iterable %}
<a{% if url['href'] is not empty %} href="{{ url['href'] }}"{% endif -%}
{%- if url['target'] is not empty %} target="{{ url['target'] }}"{% endif -%}
{%- if url['target'] is not empty %} target="{{ url['target']|raw }}"{% endif -%}
{%- if url['target'] is not empty and url['target'] == '_blank' %} rel="noopener noreferrer"{% endif -%}
{%- if url['id'] is not empty %} id="{{ url['id'] }}"{% endif -%}
{%- if url['class'] is not empty %} class="{{ url['class'] }}"{% endif -%}