From 9d44aa5d4eda82b321bf089c5b7905433a9c141f Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Sat, 26 Sep 2020 18:27:58 +0200 Subject: [PATCH] Convert raw post content to HTML - Contains \n shorthand for a paragraph --- server/routes/api/posts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/routes/api/posts.js b/server/routes/api/posts.js index 7509328..cfeb6c8 100644 --- a/server/routes/api/posts.js +++ b/server/routes/api/posts.js @@ -73,7 +73,9 @@ routes.set('/rss.xml', async (req, res) => { ${post.title} https://${req.raw.hostname}/posts?post=${post._id} https://${req.raw.hostname}/posts?post=${post._id} - ${post.content} + acc + "

" + v + "

")}]]>
+ CONTENT HERE: ${post.content} + ${post.date} ` ).join("\n") const xml = `\n