Title: Remove layout destroying HTML-Tags
Author: Stefano Picco
Published: <strong>Març 10, 2025</strong>
Last modified: Maig 21, 2026

---

Search plugins

![](https://ps.w.org/remove-layout-destroying-html-tags/assets/banner-772x250.png?
rev=3257762)

![](https://ps.w.org/remove-layout-destroying-html-tags/assets/icon.svg?rev=3257767)

# Remove layout destroying HTML-Tags

 By [Stefano Picco](https://profiles.wordpress.org/spicone/)

[Download](https://downloads.wordpress.org/plugin/remove-layout-destroying-html-tags.0.4.3.zip)

 * [Details](https://bal.wordpress.org/plugins/remove-layout-destroying-html-tags/#description)
 * [Reviews](https://bal.wordpress.org/plugins/remove-layout-destroying-html-tags/#reviews)
 *  [Installation](https://bal.wordpress.org/plugins/remove-layout-destroying-html-tags/#installation)
 * [Development](https://bal.wordpress.org/plugins/remove-layout-destroying-html-tags/#developers)

 [Support](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/)

## Description

**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.

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.

To avoid this, this plugin checks the existing formatting and attributes and removes
all those that could lead to a problem and then saves it directly.

**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 3.33
 * WPBakery 8.7

**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.
Data protection in accordance with the GDPR is therefore guaranteed at all times.

## Screenshots

[⌊Button in Classic Editor⌉⌊Button in Classic Editor⌉[

Button in Classic Editor

[⌊Button in TinyMCE toolbar⌉⌊Button in TinyMCE toolbar⌉[

Button in TinyMCE toolbar

[⌊Button in Divi⌉⌊Button in Divi⌉[

Button in Divi

[⌊Button in Elementor⌉⌊Button in Elementor⌉[

Button in Elementor

[⌊Button in Gutenberg toolbar⌉⌊Button in Gutenberg toolbar⌉[

Button in Gutenberg toolbar

[⌊Button in Gutenberg sidebar⌉⌊Button in Gutenberg sidebar⌉[

Button in Gutenberg sidebar

[⌊Button in WPBakery⌉⌊Button in WPBakery⌉[

Button in WPBakery

## Installation

#### Installation from within WordPress

 1. Visit **Plugins > Add New**.
 2. Search for **Remove layout destroying HTML-Tags**.
 3. Install and activate the Remove layout destroying HTML-Tags plugin.

#### Manual installation

 1. Upload the entire `remove-layout-destroying-html-tags` folder to the `/wp-content/
    plugins/` directory.
 2. Visit **Plugins**.
 3. Activate the Remove layout destroying HTML-Tags plugin.

## FAQ

### Why is the img element also being removed?

The img element is removed for copyright reasons, as well as performance and security.
You should insert any image data regularly and equip it with the appropriate attributes.
This is also better for accessibility and SEO.

### Is it working with Beaver, Gutenberg, Divi, Elementor or WPBakery?

At the moment it works fine with Classic Editor, Gutenberg, Divi, Elementor and 
WPBakery page builder. Integration for Beaver is in process.

### Why are the alt, aria-* and title attributes removed?

These attributes are important for accessibility, but should be added and adapted
individually so that the context is maintained.

### Why are emojis being removed too?

Although emojis are based on the international Unicode, they are sometimes displayed
differently. This means that an emoji can look completely different on iOS, Android
and Windows and have a corresponding effect. These are filtered out to avoid misunderstandings
in terms of content and to avoid potential display errors.

### How does it work in Gutenberg?

There are two ways to use it in Gutenberg: you can clean up the entire post or page
or just the content of a block. To clean up a block, simply use the icon in the 
toolbar. If you want to clean up the entire content at once, go to the sidebar and
use the Clean up HTML button in the HTML Cleanup section.

## Reviews

![](https://secure.gravatar.com/avatar/d498530de4aa463df42fb077c066ab51e4b5879d5f9f52354d20b6ad4d38f9f3?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-9590/)󠁿

 [mpst](https://profiles.wordpress.org/mpst/) Juny 4, 2025

A simple plug-in that does an excellent job

 [ Read all 1 review ](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/reviews/)

## Contributors & Developers

“Remove layout destroying HTML-Tags” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Stefano Picco ](https://profiles.wordpress.org/spicone/)

“Remove layout destroying HTML-Tags” has been translated into 2 locales. Thank you
to [the translators](https://translate.wordpress.org/projects/wp-plugins/remove-layout-destroying-html-tags/contributors)
for their contributions.

[Translate “Remove layout destroying HTML-Tags” into your language.](https://translate.wordpress.org/projects/wp-plugins/remove-layout-destroying-html-tags)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/remove-layout-destroying-html-tags/),
check out the [SVN repository](https://plugins.svn.wordpress.org/remove-layout-destroying-html-tags/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/remove-layout-destroying-html-tags/)
by [RSS](https://plugins.trac.wordpress.org/log/remove-layout-destroying-html-tags/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.4.3 – 2026-05-21

 * Fix: PHP 7.4 compatibility restored – replaced str_starts_with() with strpos()
 * Fix: Deprecated mb_convert_encoding() replaced with mb_encode_numericentity()
 * Fix: Added ABSPATH security check to main plugin file
 * Tweak: Plugin version constant RLDHT_VERSION introduced for script cache-busting
 * Tweak: Removed debug error_log() calls from PHP
 * Tweak: Removed debug console.log() and console.error() calls from JavaScript
 * Tweak: Tested with WordPress 7.0

#### 0.4.2 – 2025-12-03

 * Tweak: WPBakery 8.7 tested
 * Tweak: Elementor 3.33 tested
 * Tweak: Tested with WordPress 6.9
 * Tweak: Updating compatibility information

#### 0.4.1 – 2025-09-16

 * Tweak: Updating compatibility information

#### 0.4.0 – 2025-05-02

 * New: Elementor support
 * Tweak: FAQ Info on Gutenberg usage

#### 0.3.1 – 2025-04-30

 * Fix: Version reference

#### 0.3.0 – 2025-04-30

 * New: Gutenberg support

#### 0.2.4.1 – 2025-04-16

 * Tweak: Tested with WordPress 6.8
 * Fix: Some filters execute without explicit action on preview and save post

#### 0.2.4 – 2025-04-11

 * New: Removing emojis
 * Tweak: Further Javascript optimizations
 * Tweak: FAQ Info on emojis
 * Tweak: Tested with WordPress 6.8-RC3
 * Tweak: Javascript error is now translatable
 * Tweak: Donate link updated

#### 0.2.3.1 – 2025-04-01

 * Tweak: Javascript file renamed
 * Tweak: Added update date in changelog
 * Tweak: GDPR privacy info added in description

#### 0.2.3

 * New: UX – Finally tooltip in TinyMCE toolbar is now translatable
 * New: UI – Finally the plugin logo in TinyMCE toolbar integrated
 * Tweak: PHP for page builder swap to own folder
 * Tweak: Updated screenshots
 * Removed: Gutenberg integration needs more testing
 * Tweak: Tested with Divi 4.27.4 & WPBakery 8.3.1

#### 0.2.2.1

 * Fix: Content of some elements also deleted

#### 0.2.2

 * New: align, height, bgcolor, border, cellspacing attributes will be removed
 * New: Table elements added (table, tr, td, th)
 * New: b, i element added to approved elements
 * New: abbr element will be removed
 * Fix: Some aria-* und data-* attributes wasn’t removed

#### 0.2.1

 * New: data- attributes will be removed
 * New: article, figure, picture elements will be removed
 * New: aria-setsize, aria-posinset, translate, dir attributes will be removed
 * Tweak: Javascript swap to own folder
 * Tweak: Installation guide added

#### 0.2.0

 * New: WPBakery 8.3 support

#### 0.1.1

 * Tweak: Tested with Gutenberg & Divi 4 page builder
 * Tweak: Linguistic adjustments

#### 0.1.0

 * New: Copy&Paste Cleaner finally in TinyMCE toolbar integrated

#### 0.0.20

 * New: Icon & Banner

#### 0.0.19

 * New: Exceptions added: blockquote

#### 0.0.18

 * New: aria-hidden, title attributes will be removed
 * Tweak: some linguistic adaptation for correct translations

#### 0.0.17

 * Tweak: Button is now translatable

#### 0.0.16

 * New: Icon and banner for the WordPress Plugin Directory
 * Tweak: after access in the WordPress Plugin Directory, small corrections of the
   information
 * New: Plugin is now regularly available via WordPress

## Meta

 *  Version **0.4.3**
 *  Last updated **4 setmanes ago**
 *  Active installations **100+**
 *  WordPress version ** 6.7 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/remove-layout-destroying-html-tags/),
   [German](https://de.wordpress.org/plugins/remove-layout-destroying-html-tags/),
   i [Italian](https://it.wordpress.org/plugins/remove-layout-destroying-html-tags/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/remove-layout-destroying-html-tags)
 * Tags
 * [cleanup](https://bal.wordpress.org/plugins/tags/cleanup/)[html](https://bal.wordpress.org/plugins/tags/html/)
   [safe](https://bal.wordpress.org/plugins/tags/safe/)[secure](https://bal.wordpress.org/plugins/tags/secure/)
   [wysiwyg](https://bal.wordpress.org/plugins/tags/wysiwyg/)
 *  [Advanced View](https://bal.wordpress.org/plugins/remove-layout-destroying-html-tags/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/reviews/)

## Contributors

 *   [ Stefano Picco ](https://profiles.wordpress.org/spicone/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/remove-layout-destroying-html-tags/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://paypal.me/scp41061)