Function: nxml--buffer-substring-filter
nxml--buffer-substring-filter is a byte-compiled function defined in
nxml-mode.el.gz.
Signature
(nxml--buffer-substring-filter STRING)
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml--buffer-substring-filter (string)
;; The `rng-state' property is huge, so don't copy it to the kill ring.
;; This avoids problems when saving the kill ring with savehist.
(when (seq-find (lambda (elem)
(plist-get (nth 2 elem) 'rng-state))
(object-intervals string))
(remove-text-properties 0 (length string) '(rng-state nil) string))
string)