Function: org-link-escape
org-link-escape is a byte-compiled function defined in ol.el.gz.
Signature
(org-link-escape LINK)
Documentation
Backslash-escape sensitive characters in string LINK.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ol.el.gz
(defun org-link-escape (link)
"Backslash-escape sensitive characters in string LINK."
(replace-regexp-in-string
(rx (seq (group (zero-or-more "\\")) (group (or string-end (any "[]")))))
(lambda (m)
(concat (match-string 1 m)
(match-string 1 m)
(and (/= (match-beginning 2) (match-end 2)) "\\")))
link nil t 1))