fix(rss): double quotes in the post title will break the XML structure (#965)
This commit is contained in:
parent
fe7047959e
commit
1719d81d00
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ permalink: /feed.xml
|
||||||
{% assign post_absolute_url = post.url | absolute_url %}
|
{% assign post_absolute_url = post.url | absolute_url %}
|
||||||
<entry>
|
<entry>
|
||||||
<title>{{ post.title }}</title>
|
<title>{{ post.title }}</title>
|
||||||
<link href="{{ post_absolute_url }}" rel="alternate" type="text/html" title="{{ post.title }}" />
|
<link href="{{ post_absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
|
||||||
<published>{{ post.date | date_to_xmlschema }}</published>
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
||||||
{% if post.last_modified_at %}
|
{% if post.last_modified_at %}
|
||||||
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
|
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
|
||||||
|
|
Loading…
Reference in a new issue