Function: html2text-format-tags
html2text-format-tags is an interactive and byte-compiled function
defined in html2text.el.gz.
Signature
(html2text-format-tags)
Documentation
See the variable html2text-format-tag-list for documentation.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/html2text.el.gz
(defun html2text-format-tags ()
"See the variable `html2text-format-tag-list' for documentation."
(interactive)
(dolist (tag-and-function html2text-format-tag-list)
(let ((tag (car tag-and-function))
(function (cdr tag-and-function)))
(goto-char (point-min))
(while (re-search-forward (format "\\(<%s\\( [^>]*\\)?>\\)" tag)
(point-max) t)
(let ((p1)
(p2 (point))
(p3) (p4))
(search-backward "<" (point-min) t)
(setq p1 (point))
(unless (search-forward (format "</%s>" tag) (point-max) t)
(goto-char p2)
(insert (format "</%s>" tag)))
(setq p4 (point))
(search-backward "</" (point-min) t)
(setq p3 (point))
(funcall function p1 p2 p3 p4)
(goto-char p1))))))