Skip to content

Commit

Permalink
Escape blog post titles in the XML feed
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Sep 18, 2024
1 parent 91768af commit 9a69721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/feed.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ eleventyExcludeFromCollections: true
{%- for post in posts limit:6 -%}
{%- assign absolutePostUrl = post.url | absoluteUrl: site.url %}
<entry>
<title>{{ post.data.title }}</title>
<title>{{ post.data.title | escape }}</title>
<link href="{{ absolutePostUrl }}" rel="alternate"/>
<id>{{ absolutePostUrl }}</id>
<published>{{ post.date | dateToRfc3339 }}</published>
Expand Down

0 comments on commit 9a69721

Please sign in to comment.