September 2010 M T W T F S S « Aug 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Tag Archives: nl to br
ColdFusion – replace nl to br
Just a quickie if you need to replace NL (New Line or Carriage Return) in CFMX; <cfset text = replace(text,’#Chr(10)##Chr(13)#’,'<br>’,”All”)> You could also wrap it up in a CFC or a function if it’s going to be widely used.