CF has a function for everything. Thanks! Chad
-----Original Message----- From: Gerald Guido [mailto:gerald.gu...@gmail.com] Sent: Friday, February 05, 2010 12:50 PM To: cf-talk Subject: Re: best function jsStringFormat(String) On Fri, Feb 5, 2010 at 12:44 PM, Chad Gray <cg...@careyweb.com> wrote: > > I there, or what is the best function to use to make sure text being placed > in JS is JS safe? > > I have for example some text that contains a single quote and when I > CFoutput it into the JS the JS breaks. > > URLEncodedFormat? > > Thanks! > Chad > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330439 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4