I'm looking for the best way to clean up old HTML tables (with PHP) so that they are correct HTML5 tables - it's mostly a matter of stripping not allowed attributes. In addition to that, I'd also like to strip inline styles of these tables. It would be really great if that can be accomplished in one go.
I have been researching regular expresions mostly, but after reading that regular expressions are not recommended to perform that, I am looking for something else that would help.