1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-14 04:17:30 +00:00

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.
This commit is contained in:
Jakob Wenzel 2021-02-15 20:22:39 +01:00 committed by Cadence Ember
parent c7b83f9e75
commit 9b4f235355
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -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()
`)