Function: eww--preprocess-html

eww--preprocess-html is a byte-compiled function defined in eww.el.gz.

Signature

(eww--preprocess-html START END)

Documentation

Translate all < characters that do not look like start of tags into &lt;.

Source Code

;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww--preprocess-html (start end)
  "Translate all < characters that do not look like start of tags into &lt;."
  (save-excursion
    (save-restriction
      (narrow-to-region start end)
      (goto-char start)
      (let ((case-fold-search t))
        (while (re-search-forward "<[^0-9a-z!?/]" nil t)
          (goto-char (match-beginning 0))
          (delete-region (point) (1+ (point)))
          (insert "&lt;"))))))