🐛 fix(atom): escape HTML in feed summary
HTML now shows clear, Escaping tamed, data pure, Feed sings, have no fear.
This commit is contained in:
parent
abf32b8147
commit
46100730fa
@ -39,9 +39,9 @@
|
|||||||
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
|
<link rel="alternate" href="{{ page.permalink | safe }}" type="text/html"/>
|
||||||
<id>{{ page.permalink | safe }}</id>
|
<id>{{ page.permalink | safe }}</id>
|
||||||
{% if page.summary -%}
|
{% if page.summary -%}
|
||||||
<summary type="html">{{ page.summary }}</summary>
|
<summary type="html">{{ page.summary | striptags | safe }}</summary>
|
||||||
{% elif page.description -%}
|
{% elif page.description -%}
|
||||||
<summary type="html">{{ page.description }}</summary>
|
<summary type="html">{{ page.description | striptags | safe }}</summary>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
</entry>
|
</entry>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user