this post was submitted on 09 Oct 2025
42 points (92.0% liked)
PieFed Meta
1686 readers
19 users here now
Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.
Wiki
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
In general that's a good idea because you should never trust content coming from somewhere else (even in an S2S context)
For reference, NodeBB literally sanitizes the bejeezus out of what it gets from anywhere. All classes are removed, all attributes are removed. I want it as close to semantic HTML as possible, and classes/attributes mean absolutely nothing because:
For example, Mastodon messes with any URL it federates out. It chops the anchor text in half, hides the rest behind
invisible
or something, and adds an ellipsis.invisible
does something different in NodeBB, so there is a CSS conflict here. I strip everything and just show the URL as it was intended.