Link previews and push notifications have HTML entities
I tracked this down while working on TwitterCard stuff.
If your message has something like an apostrophe:
Pleroma's really cool!
it will render as:
Pleroma's really cool!
This is due to scrub_html_and_truncate()
used to trim and sanitize the text calling |> Emoji.Formatter.demojify()
which will call Pleroma.HTML.filter_tags()
which does {:ok, content} = FastSanitize.Sanitizer.scrub(html, scrubber)
The FastSanitize adds the HTML entities back into the message.
Any way we can solve this?