This worked in an entry before the upgrade:
<script type="text/javascript">
//<![CDATA[
var mailnostril="[at]"
for (i=0; i<=(document.links.length-1); i++){
if (document.links[i].href.indexOf(mailnostril)!=-1)
document.links[i].href=document.links[i].href.split(mailnostril)[0]+"@"+document.links[i].href.split(mailnostril)[1]
}
//]]>
</script>
But now it’s being output with the square brackets changed to…uh…senior moment…what the hell are those things called…? Angled brackets? Here, I’ll paste it in from the source code of the output page:
<script type="text/javascript">
//<![CDATA[
var mailnostril="[at]"
for (i=0; i<=(document.links.length-1); i++){
if (document.links<i>.href.indexOf(mailnostril)!=-1)
document.links<i>.href=document.links<i>.href.split(mailnostril)[0]+"@"+document.links<i>.href.split(mailnostril)[1]
}
//]]>
</script>
Think this is just an isolated thing? You’ll notice that not all brackets get changed…it’s just the four that EE apparently thinks are what…html for italics?
<i>
I’m a little concerned now because I’ve been working on this site for so long that I can’t even begin to remember where else this problem might also be cropping up. But, like I said, the above worked before the upgrade, if that helps in tracking it down or guiding me to a happy resolution. Thanks :-)
