Tooltester Clean Paste for Google Docs

Tooltester Clean Paste for Google Docs

Details
View on WordPress

When you copy content from Google Docs and paste it into WordPress, you get messy HTML like this:

<span style="font-weight: 400;">Your perfectly normal text.</span>

And list items end up looking like this:

<li style="font-weight: 400;" aria-level="1">A simple bullet point.</li>

None of this formatting does anything visible on your site. It just clutters your markup and can cause issues with themes and page builders.

This plugin automatically strips that junk every time you save a post or page.

What it cleans:

  • <span style="font-weight: 400;"> wrappers (keeps the text inside, removes the span)
  • style="font-weight: 400;" on list items
  • aria-level attributes on list items (Google Docs nesting markers that WordPress doesn’t need)

What it does NOT touch:

  • Bold, italic, links, headings, images, or any other meaningful formatting
  • Content inside <code> or <pre> blocks (safe for tutorial sites that show HTML examples)
  • Custom fields, widgets, menus, or anything outside the post editor

No settings. No admin page. No JavaScript. Just one lightweight filter that runs on save.

Trademark notice: This plugin is not affiliated with, endorsed by, or sponsored by Google LLC. “Google Docs” is a trademark of Google LLC and is used here only to describe the source of the formatting this plugin cleans up.

Details

Plugin code:
tooltester-clean-paste-for-google-docs
Plugin version:
1.0.3
Author:
Outdated:
No
WP version:
5.0 or higher
PHP version:
7.2 or higher
Test up to WP version:
6.9.4
Total installations:
0
Last updated:
2026-04-28
Rating:
Times rated:
0
cleanup
formatting
google-docs
paste
spans