=== Remove layout destroying HTML-Tags === Contributors: spicone Donate link: https://spic.wordpress.com/ Tags: cleanup, html, safe, secure, wysiwyg Requires at least: 6.7 Tested up to: 6.7 Stable tag: 0.2.2 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Copy&Paste Cleaner. Cleanup the code in post and page editor after using copy&paste content from different sources and automatic saving. == 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** 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 * WPBakery 8.3 == 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. == Frequently Asked Questions == = 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 Gutenberg, Divi, Elementor or WPBakery? = This will be tested in future. = 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. == Screenshots == 1. Button in Classic Editor 2. Button in TinyMCE toolbar 3. Button in TinyMCE toolbar with Divi 4. Button in TinyMCE toolbar with Gutenberg 5. Button in TinyMCE toolbar with WPBakery == Changelog == = 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 == Upgrade Notice == = General = This plugin is under active development and new functions and improvements are released with every update.