Title: Inserting javascript into post?
Last modified: August 18, 2016

---

# Inserting javascript into post?

 *  [brettr](https://wordpress.org/support/users/brettr/)
 * (@brettr)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/inserting-javascript-into-post/)
 * Is there a way to keep WordPress from formatting javascript in a post?
 * Thanks,
    Brett

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [thaking](https://wordpress.org/support/users/thaking/)
 * (@thaking)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/inserting-javascript-into-post/#post-471029)
 * don’t use the rich text editor…uncheck it from your user settings..
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/inserting-javascript-into-post/#post-471030)
 * Yes. Turn off the wysiwyg editor and in admin -> Options -> Writing
    uncheck 
   box for”WordPress should correct invalidly nested XHTML automatically”.
 *  Thread Starter [brettr](https://wordpress.org/support/users/brettr/)
 * (@brettr)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/inserting-javascript-into-post/#post-471032)
 * I have but the JS is still modified. I see [CDATA](http://codex.wordpress.org/CDATA)
   type entries messing up the “<” and “>” brackets.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/inserting-javascript-into-post/#post-471037)
 * Strange indeed. I do it fairly frequently across several blogs.
    Good luck.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 5 months ago](https://wordpress.org/support/topic/inserting-javascript-into-post/#post-471043)
 * Some of the built in WordPress filters can break javascript. I have a small little
   plugin to remedy that problem:
    [http://ottodestruct.com/wpstuff/scriptenabler.zip](http://ottodestruct.com/wpstuff/scriptenabler.zip)
 * This may or may not work, I have not seen CDATA messing it up before. You really
   shouldn’t get CDATA’s except in the feeds, as far as I know.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Inserting javascript into post?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/inserting-javascript-into-post/#post-471043)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
