Closed lanodan closed 3 years ago
Note: This might be a Pleroma-specific issue as Mastodon could strip this tag from our formatting.
If you're passing external HTML to GTK, you should probably be applying a strict whitelist and rewriting the semantics of the data-* attributes.
Looking at Pleroma’s HTML scrubber as a base for which attributes to keep I think only a.href
and maybe img.src
should be kept.
Pleroma is allowing a.data-user
and a.data-tag
on links but I think theses are useless for MastodonAPI clients.
Fixes: Failed to set text '@… …' from markup due to error parsing markup: Attribute 'data-user' is not allowed on the tag on line 1 char 75