I'd escape it before displaying it and NOT before sticking it an a db. In any case, 
the function you're after is HTMLEditFormat()

Steve

> -----Original Message-----
> From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
> Sent: 25 November 2002 15:37
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] Escaping HTML characters
> 
> 
> This is a stupid question, but I haven't had to deal with this in ages
> and can't remember the way round it. I'm taking content a user's typed
> in.
> 
> What's the simplest / quickest / easiest way to escape HTML characters
> before lobbing it in a database?
> 
> 
> Thanks
> 
> -- 
> Aidan Whitehall <[EMAIL PROTECTED]>
> Macromedia ColdFusion Developer
> Fairbanks Environmental +44 (0)1695 51775
> 
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ______________________________________________________________
> __________
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to