Hi all!
I’m working on a template that generates an iCal file of all events. I’ve managed to get it setup the way I want and working, but I need the line breaks in the template to be \r\n instead of just \n. Is there anyway to do this?
Thanks
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
April 11, 2013 12:08pm
Subscribe [2]#1 / Apr 11, 2013 12:08pm
Hi all!
I’m working on a template that generates an iCal file of all events. I’ve managed to get it setup the way I want and working, but I need the line breaks in the template to be \r\n instead of just \n. Is there anyway to do this?
Thanks
#2 / Apr 11, 2013 6:43pm
You might have to enable php on output and do something like:
$new_text_tarea_variable = str_replace(’\n’, ‘\r\n’, $ee_text_tarea_variable);