BACK TO DIRECTORY

Pasted HTML Cleanup

by Dovi Solutions

0.0
(0 ratings)

This plugin improves HTML content hygiene by:

  • Replacing <b>/<i> with semantic <strong>/<em> tags
  • Removing inline styles, class, id, aria-*, and data-* attributes
  • Flattening <span> tags while preserving inner text
  • Cleaning up Elementor’s text-editor widgets
  • Running cleanup automatically on post save (for selected post types)
  • Bulk-processing posts via the Tools menu
  • Providing a real-time manual HTML cleanup tool in the admin

Useful for websites that have been copy-pasting styled HTML from other sources (like Word or Google Docs), or importing messy content from page builders.

Usage

  • Enable or disable cleanup by post type via the Tools > HTML Cleanup settings.
  • Use the WYSIWYG cleaner to test and clean HTML manually.
  • Click “Start Cleanup” to process all matching posts in batches via AJAX.

Screenshots

Tools &gt; HTML Cleanup: pick the post types and the scope to clean, run the manual cleaner, or start a bulk pass.

Tools > HTML Cleanup: pick the post types and the scope to clean, run the manual cleaner, or start a bulk pass.

The manual cleaner, with markup pasted out of Word on the left and the cleaned result on the right.

The manual cleaner, with markup pasted out of Word on the left and the cleaned result on the right.

Plugin Details

Active Installs
0
Total Downloads
247
Version
1.1.1
Requires WP
5.0
Requires PHP
7.4
Tested Up To
7.1.4
Added
2026-09-16
Last Updated
2026-09-24 9:48pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0