Sherry

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Broken newline support in iCal imports #996807
    Sherry
    Participant

    I don’t think you need to do anything other than simply convert those escaped newlines into real newlines:

    str_replace('\n', PHP_EOL, description_from_import);

    in reply to: Broken newline support in iCal imports #996509
    Sherry
    Participant

    You can’t have newlines without the \n according to the ical spec so the file wouldn’t be valid. If there are no newlines, I imagine it imports one long line successfully. However, be aware that iCal also has wrapping requirements per the spec so you could only have ~76 characters or so before you would be invalid.

    in reply to: Broken newline support in iCal imports #996079
    Sherry
    Participant

    It’s because the forum software is adding a link around the URL;VALUE=URI – if you strip out the anchor tag, it validates and should be OK per my tests on the icalendar validator.

    Yes, I can edit it and it will generate the formatting after the fact, but it’s a nasty train wreck.

Viewing 3 posts - 1 through 3 (of 3 total)