Thanks, Dave.  Both options were helpful.

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 3:22 AM
To: CF-Talk
Subject: RE: How to add <BR> to CRLF?


> I'm trying to take plain text from a database or text
> file and display it on a web page. Problem is that the
> CRLF characters don't work in HTML. So, I tried
> converting them using:
>
> <CFSet tmpCRLF = Chr(13)&Chr(10)>
> <CFSet HTMLBody = #Replace(Body,tmpCRLF,tmpCRLF&"<BR>")#>
>
>
> But that doesn't work. I still get the same run-on
> paragraph.
>
> Any suggestions how I do this? I'm sure it's easy.

I think that the Replace function requires a fourth argument, "ALL", if you
want it to replace all instances. Alternatively, you could just wrap the
output in the PRE tag, I guess.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to