Title: How to properly use JavaScript in posts&#8230;?
Last modified: August 18, 2016

---

# How to properly use JavaScript in posts…?

 *  [mindman](https://wordpress.org/support/users/mindman/)
 * (@mindman)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/how-to-properly-use-javascript-in-posts/)
 * I need some help. I’ve checked through the various support topics on this issue
   and can’t seem to get the right answer. All I want to do is prevent WordPress
   from adding slashes into JavaScript code on a per-post basis, as shown below:
 * CORRECT: objectfix(‘
    INCORRECT: objectfix(\’
 * I have tried the Text Control plug-in and turned off the text formatting for 
   that post, but that still doesn’t work. I don’t want to disable the rich text
   editor either. Any recommendations?

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

 *  [zzb](https://wordpress.org/support/users/zzb/)
 * (@zzb)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-properly-use-javascript-in-posts/#post-647646)
 * Would love to hear some solutions for this one…
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-properly-use-javascript-in-posts/#post-647647)
 * [http://codex.wordpress.org/Using_Javascript#Javascript_in_Posts](http://codex.wordpress.org/Using_Javascript#Javascript_in_Posts)

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

The topic ‘How to properly use JavaScript in posts…?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [iridiax](https://wordpress.org/support/users/iridiax/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-properly-use-javascript-in-posts/#post-647647)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
