Function: shr-render-buffer
shr-render-buffer is an interactive and byte-compiled function defined
in shr.el.gz.
Signature
(shr-render-buffer BUFFER)
Documentation
Display the HTML rendering of the current buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defun shr-render-buffer (buffer)
"Display the HTML rendering of the current buffer."
(interactive (list (current-buffer)))
(or (fboundp 'libxml-parse-html-region)
(error "This function requires Emacs to be compiled with libxml2"))
(pop-to-buffer "*html*")
(erase-buffer)
(shr-insert-document
(with-current-buffer buffer
(libxml-parse-html-region (point-min) (point-max))))
(goto-char (point-min)))