Thanks. Yeah, I've heard of it (and used it), I was just using it in the wrong place. I was trying to use it when serializing the data to wddx, not on the hidden field value, where it should've been.
Another Related Question: I'm now getting errors "Not well formed" because of special characters like a registered mark ®. Is there a function to deal with these rather than using regex? If not, does anyone have a regex to replace all characters like this? I'm sure this isn't the only character that will cause problems. > -----Original Message----- > From: Kwang Suh [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 10:42 AM > To: CF-Talk > Subject: RE: WDDX Breaking Hidden Field > > > htmlEditFormat() the packet. > > <input type="hidden" name="hiddenfield" > value="#htmlEditFormat(myWDDXPacket)#"> > > Does absolutely no one know about this function? > > -----Original Message----- > From: Brad Roberts [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 8:19 AM > To: CF-Talk > Subject: WDDX Breaking Hidden Field > > > I know this has been asked before, but I can't find it anywhere. > > I have a textarea that allows users to type a bunch of text. When > submitted, the form variables serialized to wddx and put in a hidden field > for the next form. > > The problem is that if the user enters characters like double quotes, the > browser thinks the hidden form field ends at the double quotes > and displays > the rest of the packet. > > What function do I need to use to "make it safe" while passing it in a > hidden field and then "make it normal" when I input the info into the > database? > > I've tried xmlFormat(), but it didn't work (I may not be using it > correctly). > > -Brad > > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists