跳到内容

Remove layout destroying HTML-Tags

v0.8.1

Stefano Picco · 2025年3月10日 上架

Copy&Paste Cleaner. Cleanup the code in post and page editor after using copy&paste content from different sources.

正在使用
100+
评分
5.0 / 5
累计下载
4,351
最近更新
2026年11月16日
1 条评价需要 WordPress 6.7+已测试到 7.1.5PHP 7.4+

贡献者

截图

Button in Classic Editor
Button in Classic Editor
Button in TinyMCE toolbar
Button in TinyMCE toolbar
Button in Divi
Button in Divi
Button in Elementor
Button in Elementor
Button in Gutenberg toolbar
Button in Gutenberg toolbar
Button in Gutenberg sidebar
Button in Gutenberg sidebar
Button in WPBakery
Button in WPBakery
Button in Beaver Builder
Button in Beaver Builder

Copy&Paste Cleaner. If you want to quickly fill a post or a page with content that already exists, copy&paste is often used and it can destroy the layout of a website!

The basic problem is that if you copy&paste content from different sources into the visual editor, any formatting is copied over. Specifically, whether from text documents, other websites, online-shops and cms or even from social media, something comes along everywhere. This also applies to content generated in AI chats, which often contains unwanted formatting as well.

As there are often DIVs in addition to harmless HTML elements, these can cause the rendering of your own website to be faulty or interrupted. The integrated DIV-Detector automatically detects div elements in your content after pasting and shows a visual warning with a direct cleanup link.

To avoid this, this plugin checks the existing formatting and attributes and removes all those that could lead to a problem – with one click.

The cleanup includes:

  • Removes layout-breaking elements such as div and span as well as wrapper elements (figure, article, picture, aside, pre, blockquote) – the text is kept
  • Removes unnecessary attributes (e.g. classes, styles, IDs as well as aria-* and data-*) – alt texts of images on your own website are preserved
  • Removes style, script and iframe blocks including their content
  • Removes leftover CSS that comes along when you paste e-mails or Word documents
  • Removes emojis and hashtag links (e.g. from Instagram)
  • Removes images from foreign domains, local images are kept
  • Reduces repeated empty paragraphs and line breaks
  • Merges redundant nested formatting
  • Converts lists (e.g. from Word) into standards-compliant lists and cleans them up

If you copy and paste into the text editor, there is usually no problem.

Tested with these page builders:

  • Classic editor
  • Gutenberg
  • Divi 4.27
  • Elementor 4.3
  • WPBakery 9.1
  • Beaver Builder 2.11

Accessibility

The DIV warning in the Classic Editor is announced automatically by screen readers. Alt texts of images hosted on your own website are preserved during cleanup, so the accessibility of your content is not reduced. Cleaning up also converts presentational bold and italic markup into semantic strong and em elements.

Privacy GDPR

This plugin processes the analyzed and converted HTML only within the respective website. No content is stored or transferred to other servers or services for processing. No external analytics tools or tracking services are integrated or used. Data protection in accordance with the GDPR is therefore guaranteed at all times.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums