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:
parent
cd69a50648
commit
1b7ab9d0ac
1 changed files with 1 additions and 1 deletions
|
@ -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 "<"))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue