]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't render XML declaration of an HTML document (bug#44348)
authorStephen Berman <Stephen.Berman@gmx.net>
Mon, 2 Nov 2020 22:24:20 +0000 (23:24 +0100)
committerStephen Berman <stephen.berman@gmx.net>
Mon, 2 Nov 2020 22:24:20 +0000 (23:24 +0100)
* lisp/net/eww.el (eww--preprocess-html): Prevent converting the
left angle bracket in the sequence "<?" to an HTML entity.

lisp/net/eww.el

index 449618bd672ffc4fde91fefd22c92294653484e9..d6f850ca3ba193fb3ac27785181f724c4e2b4ee4 100644 (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;"))))))