Thanks for the info. That did the trick. I ended up writing it a function

<cffunction name="nl2br" returnType="string">
        <cfargument name="string" type="string">
        <cfreturn replace(string, "#chr(10)#", "<br>#chr(10)#", "all")>
</cffunction>

Luis

-----Original Message-----
From: Ben Doom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 5:06 PM
To: CF-Talk
Subject: RE: Converting new lines to <br>


I've used this:
replace(string, "#chr(10)#", "<br>#chr(10)#", "all")



  --Ben Doom 
    Programmer & General Lackey
    Moonbow Software

: -----Original Message-----
: From: Luis Lebron [mailto:[EMAIL PROTECTED]]
: Sent: Wednesday, October 02, 2002 5:53 PM
: To: CF-Talk
: Subject: Converting new lines to <br>
: 
: 
: I'm new to Cold Fusion so bear with me. Is there a way of converting new
: lines in a string to html line breaks <br>. If you are familiar 
: with PHP I'm
: looking for something like the nl2br function.
: 
: 
: thanks,
: 
: Luis
: 
: 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to