WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Raw HTML

Lets you use raw HTML or any other code in your posts. You can also disable smart quotes and other automatic formatting on a per-post basis.

Lets you disable automatic formatting like smart quotes and automatic paragraph creation, and use raw HTML/JS/CSS code in your posts without WordPress messing it up.

Features

With this plugin, you can wrap any part of your post in [raw]...[/raw] tags to prevent WordPress from converting newlines to HTML paragraphs, replacing apostrophes with typographic quotes and so on. This is very useful if you need to add a CSS block or JavaScript to your post.

RawHTML will also add new checkboxes to the "Edit Post" screen that let you disable certain WP filters on a per-post basis. This way you can:

  • Disable wptexturize (the function that creates smart quotes and other typographic characters).
  • Disable automatic paragraph creation.
  • Disable image smilies.
  • Disable convert_chars (the function that converts ampersands to HTML entities and "fixes" some Unicode characters).

The free version only supports editing posts in the Text tab (called "HTML" in older WordPress versions). Get the Pro version if you want to be able to switch between Text and the Visual editor without WordPress messing up your content.

Usage

To prevent a part of your post or page from being filtered by WordPress, switch to the Text/HTML editor and wrap it in [raw]...[/raw] or <!--raw-->...<!--/raw--> tags. These two versions work exactly the same, except that the latter won't be visible to your visitors even if you deactivate Raw HTML.

Example :

[raw]
This 

is 

a "test"!
[/raw]

In this case, the tags will prevent WordPress from inserting paragraph breaks between "This", "is" and "a "test"", as well as ensure that the double quotes arround "test" are not converted to typographic (curly) quotes.

To avoid problems, only edit posts that contain your custom code in Text/HTML mode. If you'd like to be able to also use the Visual editor, get the Pro version. It will make the code betwen [raw] tags appear as a read-only placeholder when viewed in Visual mode, ensuring WordPress doesn't change it.

Notes

Some features of Raw HTML will only work for users who have the "unfiltered_html" capability. In a normal WordPress install that includes the Editor and Administrator roles. In a Multisite install, only the Super Admin has this capability by default.

Requires: 2.8 or higher
Compatible up to: 3.9-alpha
Last Updated: 2014-1-7
Downloads: 198,433

Ratings

4 stars
4.6 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

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

100,1,1
100,1,1
100,2,2
56,9,5
100,1,1 63,8,5
0,1,0 80,5,4
100,5,5
50,4,2 100,1,1
0,1,0
0,2,0 60,5,3
0,1,0
80,5,4 100,1,1
100,2,2
100,1,1
50,2,1
60,5,3 0,1,0
100,1,1 100,2,2
67,3,2
100,1,1
100,1,1 100,5,5
67,3,2 100,1,1
50,2,1
100,1,1 100,2,2 100,1,1
100,2,2
100,1,1
0,1,0
0,1,0
50,2,1
100,2,2
100,1,1