Add escape_once to gallery title and alt text
This commit is contained in:
@@ -20,13 +20,13 @@
|
|||||||
{% for img in gallery %}
|
{% for img in gallery %}
|
||||||
{% if img.url %}
|
{% if img.url %}
|
||||||
<a href="{{ img.url | relative_url }}"
|
<a href="{{ img.url | relative_url }}"
|
||||||
{% if img.title %}title="{{ img.title }}"{% endif %}>
|
{% if img.title %}title="{{ img.title | escape_once }}"{% endif %}>
|
||||||
<img src="{{ img.image_path | relative_url }}"
|
<img src="{{ img.image_path | relative_url }}"
|
||||||
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
alt="{% if img.alt %}{{ img.alt | escape_once }}{% endif %}">
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ img.image_path | relative_url }}"
|
<img src="{{ img.image_path | relative_url }}"
|
||||||
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
alt="{% if img.alt %}{{ img.alt | escape_once }}{% endif %}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if include.caption %}
|
{% if include.caption %}
|
||||||
|
|||||||
Reference in New Issue
Block a user