How can i prevent RTE (umbraco 2) from changing my Javascript Options
thahammer
Posted: Wednesday, March 05, 2008 2:17:44 PM

Rank: Aficionado

Joined: 8/28/2007
Posts: 129
Location: Bavaria
Is this possible?

It seems that the RTE accept my new Javascript for Spam Protection. But he added some Stuff to my code.

Code:


<SCRIPT type=text/javascript>
//<![CDATA[
emailE = ('mail' + '@' + 'domain' + '.de');document.write('<a href="mailto:' + emailE + '">' + emailE + '<\/a>');
//]]>
</SCRIPT>


Now i get an Server Error cause of //<![CDATA[

Code:

Cannot have ']]>' inside an XML CDATA block.


So how can i prevent RTE from changing my code?
Or how can i write the Code to prevent the Error on the Server?

I Love umbraco
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.