diff options
author | Stephen Berman <Stephen.Berman@gmx.net> | 2020-11-02 23:24:20 +0100 |
---|---|---|
committer | Stephen Berman <stephen.berman@gmx.net> | 2020-11-02 23:24:20 +0100 |
commit | 1b7ab9d0ac2edf88d8c12346a6c0c1301670f858 (patch) | |
tree | f6334257b8400aac43cf63451ea787bd0c00075b | |
parent | cd69a50648a110ff6089f39553ddf0809479b597 (diff) | |
download | emacs-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.
-rw-r--r-- | lisp/net/eww.el | 2 |
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 "<")))))) |