You are here

function date_ical_parse_text in Date 5

Same name and namespace in other branches
  1. 5.2 date_api_ical.inc \date_ical_parse_text()
  2. 6.2 date_api_ical.inc \date_ical_parse_text()
  3. 6 date_api_ical.inc \date_ical_parse_text()
  4. 7.3 date_api/date_api_ical.inc \date_ical_parse_text()
  5. 7 date_api/date_api_ical.inc \date_ical_parse_text()
  6. 7.2 date_api/date_api_ical.inc \date_ical_parse_text()

Parse and clean up ical text elements.

1 call to date_ical_parse_text()
date_ical_import in ./date_api_ical.inc
Return an array of iCalendar information from an iCalendar file.

File

./date_api_ical.inc, line 474
Parse iCal imports and create iCal exports. This file must be included when these functions are needed.

Code

function date_ical_parse_text($field, $data) {
  if (strstr($field, 'QUOTED-PRINTABLE')) {
    $data = quoted_printable_decode($data);
  }
  $data = str_replace('\\n', "\n", $data);
  $data = stripslashes($data);
  return $data;
}