Function: org-html-final-function

org-html-final-function is a byte-compiled function defined in ox-html.el.gz.

Signature

(org-html-final-function CONTENTS BACKEND INFO)

Documentation

Filter to indent the HTML and convert HTML entities.

CONTENTS is the exported HTML code. INFO is the info plist.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
;;; Filter Functions

(defun org-html-final-function (contents _backend info)
  "Filter to indent the HTML and convert HTML entities.
CONTENTS is the exported HTML code.  INFO is the info plist."
  (with-temp-buffer
    (insert contents)
    (delay-mode-hooks (set-auto-mode t))
    (when (plist-get info :html-indent)
      (indent-region (point-min) (point-max)))
    (buffer-substring-no-properties (point-min) (point-max))))