Thanks Kalon. I was already looking at DOM methods but I’m not really known with them so that hold me back a bit. I will try them out now.
@eljohnsen well it is possible to exclude things like a class for example
preg_replace(“#class=\”.*?\“#is”, “”, $content);
But instead of making a list of what has to go out I would like to exclude all except
some indicated attributes.