March 16th, 2004, 10:28 AM
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?
March 16th, 2004, 11:27 AM
Use paragraphFormat() around the output. This translates one CRLF into a space, and two CRLF's in a row to paragraph tags.
March 16th, 2004, 12:27 PM
Do you know the syntax for that?
Originally Posted by kiteless
March 16th, 2004, 02:16 PM
#paragraphFormat( someVariableWithCRLFInIt )#
March 17th, 2004, 08:51 AM