Function: web-mode-dom-xml-replace
web-mode-dom-xml-replace is an interactive and natively compiled
function defined in web-mode.el.
Signature
(web-mode-dom-xml-replace)
Documentation
Replace &, > and < in html content.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
(defun web-mode-dom-xml-replace ()
"Replace &, > and < in html content."
(interactive)
(save-excursion
(let ((min (point-min)) (max (point-max)))
(when mark-active
(setq min (region-beginning)
max (region-end))
(deactivate-mark))
(goto-char min)
(while (web-mode-content-rsf "[&<>]" max)
(replace-match (cdr (assq (char-before) web-mode-xml-chars)) t t))
)))