Depends on what's in your string and what you're trying to do.

Ex.  If you have an HTML string ("Hello there.<br><br>How are you?"), you'll
want to replace occurances of <br> with \r (or \n).

Courtney E. Payne, Developer
Fig Leaf Software
"We've got you covered"
[EMAIL PROTECTED]
www.figleaf.com 


-----Original Message-----
From: Sean Daniels [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 9:18 AM
To: CF-Talk
Subject: RE: Jsstringformat


> <cfset safeString = Replace(evilString, "'", "\'", "All")>
>
> (escape single quotes by replacing them with \')

But are single quotes the only evil things I need to watch out for? If so,
woo hoo! But I kind of doubt it?


- Sean

~~~~~~~~~~~~~~~~~~~~~~~~~~
  Sean Daniels
  Manager, Engineering
  (T): 207.439.6030
  (C): 978.764.0799
~~~~~~~~~~~~~~~~~~~~~~~~~~
  http://www.dealforce.com
  http://www.mergernetwork.com




----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to