Skip to content

Commit

Permalink
Keep xml_escape
Browse files Browse the repository at this point in the history
  • Loading branch information
pathawks committed May 21, 2016
1 parent 99e3d65 commit 052ba78
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@
<id>{{ url_base | xml_escape }}/</id>

{% if site.title %}
<title>{{ site.title | smartify }}</title>
<title>{{ site.title | smartify | xml_escape }}</title>
{% elsif site.name %}
<title>{{ site.name | smartify }}</title>
<title>{{ site.name | smartify | xml_escape }}</title>
{% endif %}

{% if site.description %}
<subtitle>{{ site.description | smartify }}</subtitle>
<subtitle>{{ site.description | smartify | xml_escape }}</subtitle>
{% endif %}

{% if site.author %}
<author>
{% if site.author.name %}
<name>{{ site.author.name | smartify }}</name>
<name>{{ site.author.name | smartify | xml_escape }}</name>
{% else %}
<name>{{ site.author | smartify }}</name>
<name>{{ site.author | smartify | xml_escape }}</name>
{% endif %}
{% if site.author.email %}
<email>{{ site.author.email | smartify }}</email>
<email>{{ site.author.email | smartify | xml_escape }}</email>
{% endif %}
{% if site.author.uri %}
<uri>{{ site.author.uri | smartify }}</uri>
<uri>{{ site.author.uri | smartify | xml_escape }}</uri>
{% endif %}
</author>
{% endif %}

{% for post in site.posts limit: 10 %}
{% unless post.draft %}
<entry{% if post.lang %} xml:lang="{{ post.lang }}"{% endif %}>
<title>{{ post.title | smartify | strip_html | replace: '\n', ' ' | strip }}</title>
<link href="{{ post.url | prepend: url_base }}" rel="alternate" type="text/html" title="{{ post.title | smartify }}" />
<title>{{ post.title | smartify | strip_html | replace: '\n', ' ' | strip | xml_escape }}</title>
<link href="{{ post.url | prepend: url_base }}" rel="alternate" type="text/html" title="{{ post.title | smartify | xml_escape }}" />
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.last_modified_at %}
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
Expand All @@ -60,12 +60,12 @@

{% if post_author %}
<author>
<name>{{ post_author_name | smartify }}</name>
<name>{{ post_author_name | smartify | xml_escape }}</name>
{% if post_author_email %}
<email>{{ post_author_email | smartify }}</email>
<email>{{ post_author_email | smartify | xml_escape }}</email>
{% endif %}
{% if post_author_uri %}
<uri>{{ post_author_uri | smartify }}</uri>
<uri>{{ post_author_uri | smartify | xml_escape }}</uri>
{% endif %}
</author>
{% endif %}
Expand All @@ -79,7 +79,7 @@
{% endfor %}

{% if post.excerpt and post.excerpt != empty %}
<summary>{{ post.excerpt | smartify | strip_html | replace: '\n', ' ' | strip }}</summary>
<summary>{{ post.excerpt | smartify | strip_html | replace: '\n', ' ' | strip | xml_escape }}</summary>
{% endif %}

{% assign post_image = post.image %}
Expand Down

0 comments on commit 052ba78

Please sign in to comment.