{"id":23013,"date":"2013-04-17T20:02:57","date_gmt":"2013-04-17T20:02:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/html-cleanup\/"},"modified":"2016-04-15T13:02:59","modified_gmt":"2016-04-15T13:02:59","slug":"html-cleanup","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/html-cleanup\/","author":82641,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.5","stable_tag":"trunk","tested":"4.5.33","requires":"3.5.1","requires_php":"","requires_plugins":"","header_name":"HTML Cleanup","header_author":"David Lyness","header_description":"","assets_banners_color":"1d1f26","last_updated":"","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/supporters.eff.org\/donate","header_plugin_uri":"https:\/\/davidlyness.com\/html-cleanup","header_author_uri":"https:\/\/davidlyness.com","rating":4.2,"author_block_rating":0,"active_installs":10,"downloads":6179,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<h4>1.2.5<\/h4>\n\n<p>HTML Cleanup&#039;s advertised plugin homepage is now correct. No changes to HTML Cleanup functionality.<\/p>","1.2.5":"<p>HTML Cleanup&#039;s advertised plugin homepage is now correct. No changes to HTML Cleanup functionality.<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":"4"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"987507","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"987507","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"987539","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"988188","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"727596","resolution":"1","location":"assets"}},"screenshots":{"1":"The Settings page for the HTML Cleanup plugin."}},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-23013","plugin","type-plugin","status-closed","hentry","plugin_committers-davidlyness"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/html-cleanup_1d1f26.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/html-cleanup\/assets\/screenshot-1.png?rev=727596","caption":"The Settings page for the HTML Cleanup plugin."}],"raw_content":"<!--section=description-->\n<p>This plugin allows you to specify patterns of HTML that will be replaced or removed from the final output. You can define such patterns as normal text (e.g. \"penguin\" will filter all lines in the output HTML containing \"penguin\") or as a regular expression (e.g. \"WinterIs(Coming|Here)\" will filter all lines of text containing either \"WinterIsComing\" or \"WinterIsHere\").<\/p>\n <p>For more information on regular expressions, see <a href=\"http:\/\/www.regular-expressions.info\">regular-expressions.info<\/a>.<\/p>\n <p>If you come across any bugs in the plugin, or if you have any suggestions on how to make it better, <a href=\"https:\/\/davidlyness.com\/contact\">contact me directly<\/a> or use the Wordpress plugin support forums.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to the '\/wp-content\/plugins\/' directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Configure the plugin to your liking using the 'HTML Cleanup' option in the \"Settings\" menu.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>What might I use this plugin for?<\/h4>\n <p>HTML Cleanup is designed to be as versatile as possible. It is up to <strong>you<\/strong> to decide what you wish to filter in your HTML - this plugin only provides a method to do this reliably.<\/p>\n <p>I originally created this plugin for personal use, to remove artifacts <strong>other<\/strong> plugins inserted without my permission onto my public site (even though they're <a href=\"http:\/\/wordpress.org\/extend\/plugins\/about\/guidelines\/\">not supposed to<\/a>). It can and is used for this purpose, as well as removing hidden HTML comments left by other plugins on public pages.<\/p>\n <p>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.<\/p>\n <h4>What if I make a mistake when configuring HTML Cleanup and remove too much HTML? Will my site become inaccessible?<\/h4>\n <p>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.<\/p>\n <p>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.<\/p>\n\n<!--section=changelog-->\n<h4>1.2.5<\/h4>\n <ul>\n<li>Update plugin homepage URL.<\/li>\n<\/ul>\n <h4>1.2.4<\/h4>\n <ul>\n<li>Regain compatibility with Wordpress caching plugins which hook the page load very early.<\/li>\n<\/ul>\n <h4>1.2.3<\/h4>\n <ul>\n<li>Remove unnecessary PHP notice in admin area when WP_DEBUG is enabled.<\/li>\n<\/ul>\n <h4>1.2.2<\/h4>\n <ul>\n<li>Ensure PHP doesn't generate a notice regarding an undefined index.<\/li>\n<\/ul>\n <h4>1.2.1<\/h4>\n <ul>\n<li>Compatibility with versions of PHP prior to v5.3.<\/li>\n<\/ul>\n <h4>1.2.0<\/h4>\n <ul>\n<li>HTML Cleanup can now replace blacklisted HTML patterns as well as removing them.<\/li>\n<\/ul>\n <h4>1.1.0<\/h4>\n <ul>\n<li>HTML Cleanup now parses the entire page rather than just the head and body.<\/li>\n<\/ul>\n <h4>1.0.1<\/h4>\n <ul>\n<li>Fixed typos in plugin readme \/ description.<\/li>\n<\/ul>\n <h4>1.0<\/h4>\n <ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"A plugin to replace or remove lines of HTML generated by Wordpress and other plugins based on predefined regular expressions.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23013"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/davidlyness"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23013"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23013"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23013"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23013"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23013"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}