This content has been marked as final. Show 4 replies
var origText = 'blah blah & then i did this & then blah blah";
var newText = String(escape(origText).replace(new RegExp('\\+', 'g'), '%2b'));
FlashWin.sendText(newText); // << this is a reference to a flash window with ExternalInterface enabled
However, I was using HttpRequest in JS to get my original data. So this method is dependent on something other than Flash to retrieve the original text (with ampersands).
I really hope they fix this bug in the future, it can drive you nuts....
I found a link that helps:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_14143&extid=tn_14 143&dialogID=33731379&iterationID=1&sessionID=4830136b611e54860724&stateID=0+0+33735653&mo de=simple
Example: & is equivlant to %26
Works for me!
Thanks for your suggestions.
you're welcome (and that's url-encoding).