August 2001
Intermediate to advanced
976 pages
38h 8m
English
JSStringFormat — New as of ColdFusion 4.5
JSStringFormat(string)Returns string with special characters
escaped so that it is safe to use in JavaScript statements. Example:
<CFSET MyString="""Escape double quotes"". Escape the \ character. 'Escape single quotes'"> <CFSET SafeString=JSStringFormat(MyString)> <CFOUTPUT> <B>Original String:</B> #MyString#<BR> <B>JavaScript Safe String:</B> #SafeString# </CFOUTPUT>
Read now
Unlock full access