Function: icalendar-unescape-text-in-region

icalendar-unescape-text-in-region is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-unescape-text-in-region BEGIN END)

Documentation

Unescape the text between BEGIN and END.

Unescaping replaces literal '\n' and '\N' with newline, and removes backslashes that escape commas, semicolons, and backslashes.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:unescape-text-in-region (begin end)
 "Unescape the text between BEGIN and END.
Unescaping replaces literal '\\n' and '\\N' with newline, and removes
backslashes that escape commas, semicolons, and backslashes."
 (with-restriction begin end
   (save-excursion
    (replace-string-in-region "\\N" "\n" (point-min) (point-max))
    (replace-string-in-region "\\n" "\n" (point-min) (point-max))
    (replace-string-in-region "\\," "," (point-min) (point-max))
    (replace-string-in-region "\\;" ";" (point-min) (point-max)))
    (replace-string-in-region (concat "\\" "\\") "\\" (point-min) (point-max))))