ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Carriage returns in template

April 11, 2013 12:08pm

Subscribe [2]
  • #1 / Apr 11, 2013 12:08pm

    coty91

    3 posts

    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

    travisb

    172 posts

    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);

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases