Don't render XML declaration of an HTML document (bug#44348)

* lisp/net/eww.el (eww--preprocess-html): Prevent converting the
left angle bracket in the sequence "<?" to an HTML entity.
This commit is contained in:
Stephen Berman 2020-11-02 23:24:20 +01:00 committed by Stephen Berman
parent cd69a50648
commit 1b7ab9d0ac

View file

@ -345,7 +345,7 @@ the default EWW buffer."
(narrow-to-region start end)
(goto-char start)
(let ((case-fold-search t))
(while (re-search-forward "<[^0-9a-z!/]" nil t)
(while (re-search-forward "<[^0-9a-z!?/]" nil t)
(goto-char (match-beginning 0))
(delete-region (point) (1+ (point)))
(insert "&lt;"))))))