WordPress.org

Ready to get started?Download WordPress

Plugin Directory

HTML Cleanup

A plugin to replace or remove lines of HTML generated by WordPress and other plugins based on predefined regular expressions.

What might I use this plugin for?

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.

What if I make a mistake when configuring HTML Cleanup and remove too much HTML? Will my site become inaccessible?

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.

Requires: 3.5.1 or higher
Compatible up to: 3.9
Last Updated: 2014-4-16
Downloads: 743

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1