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.

Download Version 1.4.4

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

The free version only works with the HTML editor. Get the Pro Version if you want to be able to switch between HTML and the Visual editor without WordPress messing up your content.

Upgrade to Pro version

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 some new checkboxes to the "Edit" 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).

Usage

To prevent a part of your post or page from being filtered by WordPress, 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.

Notes

Personally, I prefer the <!--raw-->...<!--/raw--> syntax. These tags are formed as HTML comments, which means they won't be visible to your visitors even if you deactivate the Raw HTML plugin. On the other hand. the [raw]...[/raw] tags would show up.

Author: whiteshadow

Requires: 2.8 or higher
Compatible up to: 3.3-beta3
Last Updated: 2011-12-3 Downloads: 86,467

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(50 ratings)

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

Log in to vote.

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