From e6c1d4308091fecd9dfaaa304ddf3d2c1dc83ff0 Mon Sep 17 00:00:00 2001 From: Brandon Brown Date: Tue, 12 Mar 2024 09:44:10 -0700 Subject: [PATCH] Fix escaping in RSS feed files --- brandonb.ca/_pages/f_feed.json | 2 +- brandonb.ca/_pages/f_feed.xml | 2 +- brandonb.ca/_pages/feed.json | 2 +- brandonb.ca/_pages/feed.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/brandonb.ca/_pages/f_feed.json b/brandonb.ca/_pages/f_feed.json index d42161d..f589683 100644 --- a/brandonb.ca/_pages/f_feed.json +++ b/brandonb.ca/_pages/f_feed.json @@ -5,7 +5,7 @@ sitemap: false { "version": "https://jsonfeed.org/version/1", "title": "{{ site.title | normalize_whitespace }}", - "description": "{{ site.description | normalize_whitespace | replace: '
',' | ' }}", + "description": "{{ site.description | strip_html | normalize_whitespace }}", "home_page_url": "{{ site.url }}", "feed_url": "{{ '/feed.json' | absolute_url }}", "icon": "{{ site.favicon.png | prepend: site.assets_media }}", diff --git a/brandonb.ca/_pages/f_feed.xml b/brandonb.ca/_pages/f_feed.xml index d7a11c6..740cde5 100755 --- a/brandonb.ca/_pages/f_feed.xml +++ b/brandonb.ca/_pages/f_feed.xml @@ -6,7 +6,7 @@ sitemap: false {{ site.title | xml_escape }} - {{ site.description | xml_escape }} + {{ site.description | strip_html | xml_escape }} {{ '/' | absolute_url }} {{ site.time | date_to_rfc822 }} diff --git a/brandonb.ca/_pages/feed.json b/brandonb.ca/_pages/feed.json index 66019bb..4781713 100644 --- a/brandonb.ca/_pages/feed.json +++ b/brandonb.ca/_pages/feed.json @@ -5,7 +5,7 @@ sitemap: false { "version": "https://jsonfeed.org/version/1", "title": "{{ site.title | normalize_whitespace }}", - "description": "{{ site.description | normalize_whitespace | replace: '
',' | ' }}", + "description": "{{ site.description | strip_html | normalize_whitespace }}", "home_page_url": "{{ site.url }}", "feed_url": "{{ '/feed.json' | absolute_url }}", "icon": "{{ site.favicon.png | prepend: site.assets_media }}", diff --git a/brandonb.ca/_pages/feed.xml b/brandonb.ca/_pages/feed.xml index b88a1ea..e582a33 100755 --- a/brandonb.ca/_pages/feed.xml +++ b/brandonb.ca/_pages/feed.xml @@ -6,7 +6,7 @@ sitemap: false {{ site.title | xml_escape }} - {{ site.description | xml_escape }} + {{ site.description | strip_html | xml_escape }} {{ '/' | absolute_url }} {{ site.time | date_to_rfc822 }}