In WordPress, unfiltered HTML can be edited and published by Admins and Editors. Unfiltered HTML is not allowed for Authors and Contributors is basically for security. This is because Java Script might create problems if injected inside post content.
This might worry some WordPress Admins who might not want users with Editor rights to insert unfiltered HTML.
We can use Force Filtered HTML for Editors, a WordPress plugin to make sure that users with Editor rights are have access to only filtered html.
Force Filtered HTML for Editors – Plugin
- In WordPress Dashboard, Click on “Add New ” under Plugins.
- Now search for ‘Filtered HTML for Editors’ and select the plugin.
- Click on “Install” and activate the plugin.
This Plugin will not work for Multisite with WordPress. This is because by default in mulitsite, only Super Admins can have edit and publish unfiltered HTML.
In case you want no-one including the Admins to be able to publish unfiltered HTML then just add a single like to wp-config.php
define( 'DISALLOW_UNFILTERED_HTML', true );
This will disallowed unfiltered html for every user your WordPress blog. If you want to learn more about Filtered HTML for Editors read about it here.
Do drop in you comments.