Function: org-link-encode
org-link-encode is a byte-compiled function defined in ol.el.gz.
Signature
(org-link-encode TEXT TABLE)
Documentation
Return percent escaped representation of string TEXT.
TEXT is a string with the text to escape. TABLE is a list of characters that should be escaped.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ol.el.gz
(defun org-link-encode (text table)
"Return percent escaped representation of string TEXT.
TEXT is a string with the text to escape. TABLE is a list of
characters that should be escaped."
(mapconcat
(lambda (c)
(if (memq c table)
(mapconcat (lambda (e) (format "%%%.2X" e))
(or (encode-coding-char c 'utf-8)
(error "Unable to percent escape character: %c" c))
"")
(char-to-string c)))
text ""))