WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Filtered HTML for Editors

Editors and Administrators can publish content with unfiltered HTML. Use this plugin to force filtering of HTML from Editors.

What problem does this plugin solve?

Unfiltered HTML is potentially dangerous. It allows users to include JavaScript, object embeds, and other code that has the potential to be malicious. The capability should only be given to trusted users. By default, WordPress provides the unfiltered HTML ability to Editors and Administrators.

Use this plugin to prevent Editors from publishing unfiltered HTML posts. Administrators will not be affected.

Why are some users allowed to post unfiltered HTML?

By default, users with Administrator or Editor privileges are allowed to publish unfiltered HTML in post titles and content. WordPress is, after all, a publishing tool, and people need to be able to include whatever markup they need to communicate. Users with lesser privileges are not allowed to post unfiltered content.

What about Multisite?

This plugin won't help you. If you're running a WordPress network, then only super administrators can publish unfiltered HTML. All other users are considered untrusted, since they can be administrators on sites they register.

There exists another plugin called Unfiltered MU that will provide the unfiltered HTML ability to editors and administrators in multisite. This can only be used in a closed network where these users are trusted.

How do I deny unfiltered HTML to everyone?

You can add define( 'DISALLOW_UNFILTERED_HTML', true ); to your wp-config.php file. This will affect administrators as well. If you are running multisite, this will affect super administrators. If you do this, then this plugin will not have any affect.

Why do my video embeds break?

This is a perfect illustration of the careful balance required between security and functionality. WordPress is, after all, a publishing tool, as said above.

Video embeds, such as those with <embed> or <object> tags, are considered untrusted. Thus, on save they will be stripped out, unless the user has the ability to publish unfiltered HTML.

If you're embedding a video from YouTube (let's say), then you shouldn't mess with the embed code anyway. For YouTube and other sites, take a look at automatic embedding of content through oEmbed, which was added to WordPress in version 2.9. We have a handful of oEmbed providers supported in core (again, a balance between security and functionality).

Requires: 2.8 or higher
Compatible up to: 3.1.4
Last Updated: 2010-12-31
Downloads: 999

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1