<cfset crlf=chr(13)&chr(10)>
<cfset newstring=replace(""&#string_to_replace#,crlf,crlf&"<p>","all")>



-----Original Message-----
From: Perez, Bismark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 11:37 AM
To: CF-Talk
Subject: Using Replace() to replace "hard returns" on <cfinclude>


Hello there,

I have a text file that I want to include in a page, but I would like to
replace() all the hard returns in it first.  Can I do all in one line? for
example:

<cfoutput> #replace(<cfinclude template="... >, ... )# </cfoutput>


TIA

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to