=== ConvertToHTML HTML Cleanup ===
Contributors: converttohtml
Tags: clean html, word html, google docs, html cleaner, paste cleanup
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0-beta.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Clean messy HTML pasted from Microsoft Word, Google Docs, email and webpages directly in WordPress.

== Description ==

ConvertToHTML HTML Cleanup processes content locally in the administrator's browser. It provides:

* A rich-paste area for normally copied content.
* A raw HTML source editor.
* Light, balanced and aggressive cleanup presets.
* Options to keep or remove links, images and tables.
* Removal of Word classes, editor metadata, unnecessary spans and inline styles.
* Removal of scripts, iframes, forms, active embeds, event handlers and unsafe URLs.
* Before-and-after size plus removed-element and removed-attribute statistics.
* A clean preview, HTML copy, plain-text copy, snippet download and full-page download.

No cleanup content is submitted to WordPress, ConvertToHTML or another external service.

== Installation ==

1. Open Plugins > Add New > Upload Plugin.
2. Select the ZIP, install it and activate it.
3. Open Tools > HTML Cleanup.
4. Paste content, choose a cleanup strength and select Clean HTML.

== Frequently Asked Questions ==

= Which cleanup preset should I use? =

Balanced cleanup is the recommended starting point. Light preserves more formatting. Aggressive keeps a stricter set of semantic elements and attributes.

= Does this work with Microsoft Word? =

Yes. Paste normally into the formatted-content area. The cleaner removes common Mso classes, namespaced tags and Word-specific style properties.

= Does this work with Google Docs? =

Yes. It removes common editor attributes, extra spans and inline formatting while retaining useful document structure.

= Is my content uploaded? =

No. Cleanup, preview, copying and downloads happen inside the browser tab.

= Does the output contain a backlink? =

Only when the user explicitly selects the optional ConvertToHTML credit. It is disabled by default and uses rel="nofollow".

== Changelog ==

= 1.0.0-beta.1 =

* Initial beta release.
* Added rich-paste and raw-HTML cleanup modes.
* Added three cleanup presets and content controls.
* Added preview, statistics, copy and download tools.
