Open JohnnyJayJay opened 1 week ago
The sanitizer doesn't preserve the <div>
and <span>
elements. However, the # exit 1
should not have been removed. That needs to be investigated.
The sanitiser is not responsible - I tested it when creating my recent PR. Something else removes the text in those spans (either before, or after calling Sanitize)
Miniflux removes certain elements from
pre
blocks, for some reason.For example, in one of my posts, I have the following HTML:
(This is the highlight.js output for this code block):
I would expect Miniflux to display all text from that
pre
in its reader. But it doesn't, it removes the spans that use thehljs-comment
class, so it ends up looking like this in the reader:Is this intended behaviour? If not, why could this be? What part of the code filters out spans with that class?
I'm running Miniflux via docker-compose,
latest
image tag (I pulled the latest version right before writing this).