Hi,

I was looking for a function for encoding javascript output text that would be 
similar to the URLEncodedFormat() built in function.  I have an app that users 
can type in javascript warning messages and there are several characters that 
are causing the javascript to break (i.e. CR-LF, double quotes, etc.).  I 
looked on CFLib and there were only a handful of javascript functions.  Does 
anyone know of a function that that will change CR-LF to "\n" as well as all 
other characters that need to be escaped?

I am envisioning something like JavascriptEncodedFormat(Variables.jsWarning).

Thanks,

Donnie 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:328490
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to