I think this is what you are looking for (ideally, stick it in a custom tag 
for future use).

<cfset string = Replace(string, Chr(13) & Chr(10) & Chr(13) & Chr(10), 
"<p>", "all")>
<cfset string = Replace(string, Chr(13) & Chr(10), "<br>", "all")>

<cfset string = Replace(string, Chr(10) & Chr(10), "<p>", "all")>
<cfset string = Replace(string, Chr(10), "<br>", "all")>

<cfset string = Replace(string, Chr(13) & Chr(13), "<p>", "all")>
<cfset string = Replace(string, Chr(13), "<br>", "all")>

<cfoutput>#string#</cfoutput>





At 10:10 AM 3/22/2001, you wrote:
>use paragraphformat() on the output, might get close to what you are after,
>it only does quite basic formatting, cr's and lf's only.
>
>
>-----Original Message-----
>From: Javed Mushtaq [mailto:[EMAIL PROTECTED]]
>Sent: 22 March 2001 09:18
>To: CF-Talk
>Subject: Text area question
>
>
>Hi all,
>
>I have a text area on a page and need to save to a database and then output
>the information exactly as it appeared on the text area.
>
>How do i do this, could anyone send me the code as got to get this up and
>running by 10am today.
>
>Thanks in advance.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to