From a177e6cb3f52b353a72209a87ab43af871d3b32b Mon Sep 17 00:00:00 2001 From: Jakob Wenzel Date: Mon, 15 Feb 2021 20:22:39 +0100 Subject: [PATCH] insert br tags in feeds FreshRSS performs input sanitation and throws away all style attributes. Instead of relying on them for linebreaks, insert br tags. --- src/lib/structures/TimelineEntry.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/structures/TimelineEntry.js b/src/lib/structures/TimelineEntry.js index ba49963..5676f86 100644 --- a/src/lib/structures/TimelineEntry.js +++ b/src/lib/structures/TimelineEntry.js @@ -8,7 +8,9 @@ const TimelineChild = require("./TimelineChild") require("../testimports")(collectors, TimelineChild, TimelineBaseMethods) const rssDescriptionTemplate = compile(` -p(style='white-space: pre-line')= caption +each line in caption.split("\\n") + = line + br each child in children != child.getFeedItem() `)