I have some script to denormalize the tags that get normalized in the Ajax return. The problem is that when I do:
str.replace( /&/g, "&" ) in my script, the VisualForce page rendering alters the string to be:
str.replace( /&/g, "&" ). It's not at all the same thing. Is there a way to keep the VisualForce page rendering from altering my script when it translates the page?
This may be the answer, I probably should change it to a resource and just add a reference to the separate script file. The trouble with this is that changing a debugging the script will be painful because I'll have to keep reloading the resource every time I make a change. I was planning on doing this later but during the development phase, this will be painful.