0

I'm passing a description field, after I run a

cfset local.description = rereplacenocase(arguments.description,chr(13),'<br>','all')

to DESCRIPTION:#local.description#\n

And it is only showing the first line up until that 1st BR. Any ideas?

Jason Sundram
  • 12,225
  • 19
  • 71
  • 86

1 Answers1

0

use replace() instead. You're not really doing regular expression here...

var description = replace(arguments.description, chr(13), '<br>', 'all');

Or, use something like paragraphFormat() or paragraphFormat2()

Henry
  • 32,689
  • 19
  • 120
  • 221