A plugin to replace or remove lines of HTML generated by WordPress and other plugins based on predefined regular expressions.
HTML Cleanup is designed to be as versatile as possible. It is up to you to decide what you wish to filter in your HTML - this plugin only provides a method to do this reliably.
I originally created this plugin for personal use, to remove artifacts other plugins inserted without my permission onto my public site (even though they're not supposed to). It can and is used for this purpose, as well as removing hidden HTML comments left by other plugins on public pages.
Alternatively, if you wish to remove or replace some HTML inserted by your WordPress theme without modifying the theme's files (which will be reset when the theme updates anyway), you can specify that this should be removed using HTML Cleanup.
HTML Cleanup only filters the HTML output on public pages (i.e. not in the administrative settings area). Therefore, you will always be able to access your settings and modify or disable the plugin if you wish.
There is also a method to temporarily disable filtering by appending an override parameter to the URL - see the plugin's Settings page for more details.