Function: icalendar-escape-text-string

icalendar-escape-text-string is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-escape-text-string S)

Documentation

Escape the text in string S.

Escaping replaces newlines with literal '\n', and escapes commas, semicolons and backslashes with a backslash.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:escape-text-string (s)
  "Escape the text in string S.
Escaping replaces newlines with literal '\\n', and escapes commas,
semicolons and backslashes with a backslash."
  (with-temp-buffer
    (insert s)
    (ical:escape-text-in-region (point-min) (point-max))
    (buffer-string)))