Open KaiserBarbarossa opened 3 years ago
https://pypi.org/project/bleach/ should do the main job. I worked on integrating it in https://github.com/chris34/inyoka/commits/planet-refactoring, but it was never finished…
Furthermore, i would only allow certain domains for images in the planet. For example a blog post could only include image from the same domain as the blog (if cdn make problems, we can allow a team-definable list of domains per blog).
As bleach is deprecated nowadays, an alternative seems to be https://github.com/messense/nh3
It would be a pleasure if tracking pixels would be automatically removed from the planet.
See also: https://forum.ubuntuusers.de/topic/ominoese-weisse-gif-bilder-im-planeten/.
Any opinions on this?