mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-23 00:27: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:
parent
33f85d83da
commit
a177e6cb3f
@ -8,7 +8,9 @@ const TimelineChild = require("./TimelineChild")
|
|||||||
require("../testimports")(collectors, TimelineChild, TimelineBaseMethods)
|
require("../testimports")(collectors, TimelineChild, TimelineBaseMethods)
|
||||||
|
|
||||||
const rssDescriptionTemplate = compile(`
|
const rssDescriptionTemplate = compile(`
|
||||||
p(style='white-space: pre-line')= caption
|
each line in caption.split("\\n")
|
||||||
|
= line
|
||||||
|
br
|
||||||
each child in children
|
each child in children
|
||||||
!= child.getFeedItem()
|
!= child.getFeedItem()
|
||||||
`)
|
`)
|
||||||
|
Loading…
Reference in New Issue
Block a user