diff --git a/src/feed.11ty.liquid b/src/feed.11ty.liquid index 875d29e1..96b8069d 100644 --- a/src/feed.11ty.liquid +++ b/src/feed.11ty.liquid @@ -13,7 +13,7 @@ permalink: '/feed.json' "id": "{{ site.url }}{{ item.url }}" "title": "{{ item.data.title }}", "url": "{{ site.url }}{{ item.url }}", - "content_html": "{{ item.data.post_excerpt | mdToHtml }}", + "content_html": "{{ item.data.post_excerpt | mdToHtml | escape }}", "date_published" "{{ item.date | date: "%Y-%m-%dT%H:%M" }}" }{% if not forloop.last %},{% endif %} {% endfor %} diff --git a/src/follow.11ty.liquid b/src/follow.11ty.liquid index 449a026b..c5379cd8 100644 --- a/src/follow.11ty.liquid +++ b/src/follow.11ty.liquid @@ -13,7 +13,7 @@ permalink: '/follow.json' "id": "{{ item.id }}", "title": "{{ item.title }}", "url": "{{ item.url }}", - "content_html": "{{ item.content_html | mdToHtml }}", + "content_html": "{{ item.content_html | mdToHtml | escape }}", "date_published": "{{ item.date_published | date: "%Y-%m-%dT%H:%M" }}" }{% if not forloop.last %},{% endif %} {% endfor %}