I have an *.asp page form that I parse out to XML. Problem is... people can put into the fields &, <, and >. Those need to be &, <, and >.
...yepo, need some help on this one...
I've had the same problem. I came up with this solution. It's a little messy with 2 functions but always works.
var munch = ['&','<','>','"'];
var repl = ['&','<','>','"']
var arrayLen = munch.length;
str = escape_strSub1 (munch[i],repl[i],str);
var arr = str.split(char);
clear = arr.join(repl);
Click Here to Expand Forum to Full Width