Improve HTML sanitization of Newswire items #20
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
indymedia/epicyon#20
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm reasonably sure this isn't a duplication of Issue #16
A Mastodon item appears in the Newswire section, so it's clearly been federated. No content appears until it's activated by mousing over its contents. When it does appear, it contains HTML tags
There's broken HTML there, so the most likely problem is a broken HTML sanitizer
As of commit
3c1314d4b4I've removed html markup from feed descriptions, so this should no longer be a problem. Trying to sanitize RSS feed decriptions probably isn't worth it, and these days the more mainstream news sites may fill them with tracker links or javascript stuff.Feeds coming from Mastodon instances in theory should be better, because Mastodon only uses a limited subset of html, but it's probably better not to make any assumptions.