Title: Escaping Javascript in a Text Widget?
Last modified: August 19, 2016

---

# Escaping Javascript in a Text Widget?

 *  [bitbass](https://wordpress.org/support/users/bitbass/)
 * (@bitbass)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/escaping-javascript-in-a-text-widget/)
 * Topic pretty much says it. I want to add a widget that shows Amazon widgets but
   I’ve run into this problem adding any javascript based code. The ad management
   systems are ok but I just want to add a widget. Doing it with a Text widget of
   course fails because it can’t parse the code.
 * So, what’s the trick?

Viewing 1 replies (of 1 total)

 *  Anonymous User
 * (@anonymized-473288)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/escaping-javascript-in-a-text-widget/#post-948780)
 * Placing the javascript code directly in the sidebar or using a plugin such as
   Exec-PHP.
 * Link to Exec-PHP plugin:
    [http://wordpress.org/extend/plugins/exec-php/](http://wordpress.org/extend/plugins/exec-php/)

Viewing 1 replies (of 1 total)

The topic ‘Escaping Javascript in a Text Widget?’ is closed to new replies.

## Tags

 * [amazon](https://wordpress.org/support/topic-tag/amazon/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/escaping-javascript-in-a-text-widget/#post-948780)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
