summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStephen Berman <Stephen.Berman@gmx.net>2020-11-02 23:24:20 +0100
committerStephen Berman <stephen.berman@gmx.net>2020-11-02 23:24:20 +0100
commit1b7ab9d0ac2edf88d8c12346a6c0c1301670f858 (patch)
treef6334257b8400aac43cf63451ea787bd0c00075b /lisp
parentcd69a50648a110ff6089f39553ddf0809479b597 (diff)
downloademacs-1b7ab9d0ac2edf88d8c12346a6c0c1301670f858.tar.gz
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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/eww.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 449618bd672..d6f850ca3ba 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -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;"))))))