If you only need it for display purposes, ParagraphFormat() should be what
you need.
If you actually need to change the string, then the other suggestions given
should be fine.
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.
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
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:
: 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
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
- Original Message -
From: Luis Lebron [EMAIL PROTECTED]
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.
paragraphFormat() function
cheers,
Sam
- Original Message -
From: Luis Lebron [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, October 02, 2002 5:52 PM
Subject: Converting new lines to br
I'm new to Cold Fusion so bear with me. Is there a way of converting new
7 matches
Mail list logo