Search code examples
coldfusionvcalendar

vCalendar Code ignoring everything after <br> tag in DESCRIPTION field


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?


Solution

  • 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()