Title: CDATA being added to javascript
Last modified: August 30, 2016

---

# CDATA being added to javascript

 *  [deane5678](https://wordpress.org/support/users/deane5678/)
 * (@deane5678)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cdata-being-added-to-javascript/)
 * Hi,
 * I’m using javascript affiliate code on my pages and the tracking for some reason
   isn’t being included. I’m trying to figure out what the problem is, as all of
   my scripts on all of my sites have suddenly been rendered useless. Thet were 
   working previously, but the problems started about 2 weeks ago.
 * Anyway, after doing some digging I can see that when I add the javascript code
   in text mode and then change back to visual that CDATA is added to the beginning
   and end. I’ve done a bit of a search and can see that this is apparently normal
   behaviour for WP.
 * However, at the beginning of the script instead of adding
 * `// <![CDATA[`
 * it is instead adding;
 * `// < ! & # 091 ; CDATA & # 091;` (I’ve added spaces to the code so that it displays)
 * and the end of the script, it is adding;
 * `// & # 093 ; & # 093 ; >` (I’ve added spaces to the code so that it displays)
 * Does anyone have any ideas what the problem could be?

The topic ‘CDATA being added to javascript’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [deane5678](https://wordpress.org/support/users/deane5678/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/cdata-being-added-to-javascript/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
