Be careful with doing the replace on 13 & 10, you might want to reduce them
down to one thing before replacing with the <br />, some OSes (would love to
know which and whether this is true or an old wives tale) don't produce 13 &
10.

Adrian

> -----Original Message-----
> From: Jason Fisher [mailto:[email protected]]
> Sent: 23 January 2009 16:09
> To: cf-talk
> Subject: Re: New line
> 
> And, if you are pulling that data from a database and if that data got
> in there from a textarea, you can do a replace to get <br /> where you
> need it:
> 
> <cfset crlf = chr(13) & chr(10) />
> 
> <cfoutput>
> #replace(str1, crlf, "<br />", "all")#
> </cfoutput>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318414
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to