Function: org-html-normalize-string-or-function

org-html-normalize-string-or-function is a byte-compiled function defined in ox-html.el.gz.

Signature

(org-html-normalize-string-or-function INPUT &rest ARGS)

Documentation

Normalize INPUT function or string.

If INPUT is a string, it is passed to org-element-normalize-string. If INPUT is a function, it is applied to arguments ARGS, and the result is passed to org-element-normalize-string.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
(defun org-html-normalize-string-or-function (input &rest args)
  "Normalize INPUT function or string.
If INPUT is a string, it is passed to
`org-element-normalize-string'.  If INPUT is a function, it is
applied to arguments ARGS, and the result is passed to
`org-element-normalize-string'."
  (let ((s (if (functionp input) (format "%s" (apply input args)) input)))
    (org-element-normalize-string s)))