Why is the editor adding [CDATA to java script calls?
-
Can someone please tell me why the wordpress editor adds the <![CDATA tag around my javascript call when switching from html to visual in the page editor. The call example is below with the good and switched version. Why the heck is it doing this, what a pain it is to keep deleting the extra junk. The script call works fine without the tags. Is there a way to stop this from happening?
Before in HTML mode
<script type=”text/javascript”>
<!–
// Load startup player
createPlayer(“http://www.southlandbible.org/xml/musicMinistry.xml”);
//–>
</script>After switching to the visual mode.
<script type=”text/javascript”>// <![CDATA[
mep-nl–> <!–
// Load startup player
createPlayer(“http://www.southlandbible.org/xml/musicMinistry.xml”);
//–><!–mep-nl
// ]]></script>
The topic ‘Why is the editor adding [CDATA to java script calls?’ is closed to new replies.