remove most html invalidities