For what it's worth I usually replace tabs with 5 spaces at the same time. Also, sometimes only a line feed is present with no carriage return, so I will replace carriage return/line feed combinations first, and then replace any remaining solitary line feeds.
replacenocase(text,chr(13)&chr(10),"<br />","all") replacenocase(text, chr(10),"<br />","all") replacenocase(text,chr(09)," ","all") ~Brad -----Original Message----- From: Charlie Griefer [mailto:[EMAIL PROTECTED] Sent: Friday, August 24, 2007 11:38 AM To: CF-Talk Subject: Re: replace carraige returns #replace(myTextAreaText, '#chr(13)&chr(10)#', '<br />', 'all')# On 8/24/07, Matthew Smith <[EMAIL PROTECTED]> wrote: > How would I replace the carriage returns in a textarea entry with <br>? > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287051 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4