|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Formatting output: converting CRLF to html.
I am inserting the data into the table and it appears that the CRLF is preserved (solid upright bars appear where CRLFs occur), however, these are not preserved on the output.
Does ayone know how I can ensure that, just as they are done in this post, (though I realize this is PHP and not CFM) the carriage returns are converted to <p> or <br> tags for the output? |
|
#2
|
|||
|
|||
|
Use paragraphFormat() around the output. This translates one CRLF into a space, and two CRLF's in a row to paragraph tags.
|
|
#3
|
|||
|
|||
|
Quote:
Do you know the syntax for that? |
|
#4
|
|||
|
|||
|
<cfoutput>
#paragraphFormat( someVariableWithCRLFInIt )# </cfoutput> |
|
#5
|
|||
|
|||
|
Perfect!
Thank you! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Formatting output: converting CRLF to html. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|