Plugin Code Clean Test
ChatGPT Code Cleaner: Keep WordPress Content Clean
Copying content from ChatGPT into WordPress is fast, but it can sometimes bring along extra HTML bits you never asked for. Those little artifacts can make your editor messy, bloat your page markup, and occasionally cause weird front-end display issues.
ChatGPT Code Cleaner removes that junk automatically, so your content stays lean, readable, and easier to manage.
What This Plugin Cleans
-
data-start and data-end attributes that can sneak into headings and paragraphs
-
Extra data-* attributes added during copy/paste
-
Empty span tags that do nothing but clutter your markup
-
Plain text wrapped in unnecessary span tags
Why It Matters
Clean HTML helps your pages load more efficiently and makes future edits less frustrating. It also reduces the chance that random hidden attributes cause styling or layout problems later.
In short: fewer weird bits, fewer headaches.
A Quick Test Paragraph
If you pasted content from ChatGPT before, you’ve probably seen weird “invisible” stuff attached to text. This paragraph is designed to mimic that behavior so you can test the plugin on it.
Some text gets wrapped for no reason. Some invisible empty spans sneak in. And sometimes extra data attributes hitch a ride on headings and list items. If your plugin is configured correctly, all of that should be cleaned up when you run the one-time cleaner or when you click Update with ongoing cleaning enabled.
How To Use ChatGPT Code Cleaner
-
In WordPress Admin, go to Tools → ChatGPT Code Cleaner
-
Choose your One-time Database Clean option (Both / Pages / Posts / No, thanks.)
-
Choose your Ongoing Cleaning option (Both / Pages / Posts / No, thanks.)
-
Click Clean Now to run the one-time cleanup
After that, update this post once more with “Ongoing Cleaning” enabled. If everything is working, the extra HTML artifacts should be removed automatically on save.
Final Note
This plugin is meant to be simple: clean once if you already have messy content, then keep things clean every time you publish or update.