From 009709a04b8c76115cb8d29787f3979535b496b7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 Apr 2024 21:55:48 +0200 Subject: templates: don't escape HTML for Atom feed; it's not necessary --- src/templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates.ts b/src/templates.ts index d4642e1..b5043c0 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -178,7 +178,7 @@ async function renderFeed(title: string, posts: Post[], tag?: string) { $post.find("author > name").text(config.title); $post.children("summary").text(post.description || ""); const content = marked.parse((await getPost(post.input)).content); - $post.children("content").html(Bun.escapeHTML(await content)); + $post.children("content").html(await content); $post.appendTo($feed); } -- cgit 1.4.1