Search code examples
coldfusiontextarea

What do you use to render text from <textarea> to <div> with ColdFusion?


What do you use? Replace() linebreak chars with <br>? what about spaces? like maybe replace 2 spaces with &nbsp;?

ParagraphFormat() sucks.

paragraphformat2()? http://www.cflib.org/udf.cfm/paragraphformat2


Solution

  • ReplaceNoCase(someString,  "\n", "<br>","all")