How would I replace the carriage returns in a textarea entry with br?
cfset
newstring='#REREPLACE(#REREPLACE(#Trim(form.mystring)#,quot;,,all
)#,#chr(13)#,br,all)#'
This will do carriage returns and quotes to you can pass the data around in
forms. Keep in mind, however, if you stick br into a DB
Thank you, Robert. Exactly what I needed.
-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 11:42 AM
To: CF-Talk
Subject: RE: replace carriage returns
How would I replace the carriage returns in a textarea entry with br?
cfset
newstring
, Robert. Exactly what I needed.
-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 11:42 AM
To: CF-Talk
Subject: RE: replace carriage returns
How would I replace the carriage returns in a textarea entry with br?
cfset
newstring
!
-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 11:42 AM
To: CF-Talk
Subject: RE: replace carriage returns
How would I replace the carriage returns in a textarea entry with br?
cfset
newstring='#REREPLACE(#REREPLACE(#Trim(form.mystring)#,quot;,,
all
and also God kills a kitty every time you overuse pound signs :)
E. Man, I knew there was a reason I worked so hard to get those # signs
out of my glossary link.
Robert B. Harrison
Director of Interactive services
Austin Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T :
How would I ignore inserting carriage returns is the carriage return
comes after a ul, li, /li, or /ul?
If you're letting them enter HTML code, make them enter HTML with their own
p tags and br /'s. Either you control it or they write html. It would be
a nightmare to mix the two.
Robert B.
: replace carriage returns
How would I replace the carriage returns in a textarea entry with br?
cfset
newstring='#REREPLACE(#REREPLACE(#Trim(form.mystring)#,quot;,,
all
)#,#chr(13)#,br,all)#'
This will do carriage returns and quotes to you can pass the data around
in
forms. Keep in mind
You missed one.
Wouldn't want to doom any kitten today :)
rereplace(rereplace(trim(form.mystring),quot;,,all),chr(13),b
r,all)
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday, August 24, 2007 12:00 PM
To: CF-Talk
Subject: Re: replace carriage returns
8 matches
Mail list logo