You are here

function ical_quoted_printable_escaped in Event 5.2

Same name and namespace in other branches
  1. 5 ical.inc \ical_quoted_printable_escaped()

escape ical separators in quoted-printable encoded code

File

./ical.inc, line 354
API for event import/export in iCalendar format as outlined in Internet Calendaring and Scheduling Core Object Specification http://www.ietf.org/rfc/rfc2445.txt

Code

function ical_quoted_printable_escaped($string) {
  $replace = array(
    ";" => "\\;",
    ":" => "\\:",
  );
  return strtr(ical_quoted_printable_encode($string), $replace);
}