Function: org-html--anchor
org-html--anchor is a byte-compiled function defined in ox-html.el.gz.
Signature
(org-html--anchor ID DESC ATTRIBUTES INFO)
Documentation
Format a HTML anchor.
ID is the anchor id. ATTRIBUTES is the anchor attributes, as a string. DESC is the anchor text. INFO is the info plist.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
;;;; Anchor
(defun org-html--anchor (id desc attributes info)
"Format a HTML anchor.
ID is the anchor id. ATTRIBUTES is the anchor attributes, as a string.
DESC is the anchor text. INFO is the info plist."
(let* ((name (and (plist-get info :html-allow-name-attribute-in-anchors) id))
(attributes (concat (and id (format " id=\"%s\"" id))
(and name (format " name=\"%s\"" name))
attributes)))
(format "<a%s>%s</a>" attributes (or desc ""))))