Helpful Information
 
 
Category: ColdFusion Development
Parsing a variable for conversion

There's probably some simple way to do this but I haven't figured it out yet. I have a text file that gets read in and displayed in an html page. Obviously (as mentioned in an earlier post) all of the returns and such get read as regular whitespace in HTML, so I want to go through and convert all carriage returns to a line break tag. However, Find and FindNoCase for "\n" don't work, is there another escape code I need to be searching for? Or even better, something built in to do this for me?

Try chr(10) or chr(13) with no quotes in your Find.

thanks, I actually got a couple other suggestions for that so I'll try it tomorrow. yay for meetings taking up the last hour and a half of your productive time...










privacy (GDPR)