=== Clean ChatGPT Junk HTML ===
Contributors: ashevillewebdesign  
Tags: html cleanup, remove junk html, data-start, data-end, elementor, wordpress optimization  
Requires at least: 5.0  
Tested up to: 6.7
Requires PHP: 7.2  
Stable tag: 2.4  
License: GPLv2 or later  
License URI: https://www.gnu.org/licenses/gpl-2.0.html  

Clean ChatGPT Junk HTML scans and removes unwanted `data-start` and `data-end` attributes from specified HTML tags across posts, pages, and custom post types. Supports Elementor, WPBakery, and other popular page builders.

== Description ==
Clean ChatGPT Junk HTML is a powerful WordPress plugin that removes unnecessary `data-start` and `data-end` attributes commonly left behind when copying content from certain editors. It works seamlessly across all posts, pages, and custom post types without affecting your site’s styles or essential content.  
The plugin supports popular page builders like Elementor and WPBakery to ensure compatibility with modern WordPress sites. With the included **Dry Run Mode**, you can preview changes before applying them for safe and precise cleaning.

= Features: =
* Scan posts, pages, and custom post types for unwanted HTML attributes.  
* Remove only specified tags (default: `h1,h2,h3,h4,h5,ol,li,p,ul,strong`).  
* Supports Elementor, WPBakery, and standard WordPress editors.  
* Dry run mode lets you preview changes before cleaning.  
* Simple interface accessible from the **Tools** menu.  

== Installation ==
1. Download the plugin ZIP file.  
2. Upload it via the **Plugins > Add New > Upload Plugin** screen in your WordPress dashboard.  
3. Click **Install Now** and then **Activate** the plugin.  
4. Access the plugin settings via **Tools > Clean Junk HTML**.  

== Usage ==
1. Navigate to **Tools > Clean Junk HTML** in your dashboard.  
2. Adjust the tags to be scanned (default: `h1,h2,h3,h4,h5,ol,li,p,ul,strong`).  
3. Enable **Dry Run Mode** to preview which content contains junk HTML.  
4. Click **Scan Site** to detect junk attributes across your site.  
5. Use the **Clean This Post** button to remove unwanted attributes from individual posts.  

== Frequently Asked Questions ==

= Will this plugin affect my site's styles or content? =  
No. The plugin only removes `data-start` and `data-end` attributes from the specified HTML tags, leaving styles and essential content untouched.

= Is this plugin compatible with Elementor and WPBakery? =  
Yes, it fully supports cleaning content built with Elementor, WPBakery, and the default WordPress editor.

= What does the Dry Run Mode do? =  
Dry Run Mode allows you to scan your site and preview which posts contain junk HTML without making any changes.

== Screenshots ==
1. Plugin settings page under **Tools > Clean Junk HTML**.  
2. Scan results showing posts with junk attributes and clean buttons.  
3. Tags input and dry run mode settings section.  

== Changelog ==

= 2.4 - 2024-02-18 =  
* Added readme.txt with full WordPress headers.  
* Improved scanning for posts, pages, and custom post types.  
* Ensured compatibility with Elementor and WPBakery.  
* Added dry run mode and tag customization features.  

= 2.3 =  
* Extended scanning to include all custom post types.  

= 2.2 =  
* Removed preview functionality.  
* Set default cleaning tags.  

= 2.1 =  
* Improved compatibility with page builders.  

= 2.0 =  
* Initial stable release.  

== Upgrade Notice ==
= 2.4 =  
Upgrade to ensure compatibility with the latest WordPress versions and improved custom post type support.

== License ==
This plugin is licensed under the GPLv2 or later.  
See [GNU General Public License](https://www.gnu.org/licenses/gpl-2.0.html) for details.
