mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(xml-parse-string): Use skip-chars-forward.
This commit is contained in:
parent
50694105a6
commit
98b6923268
1 changed files with 1 additions and 3 deletions
|
|
@ -494,9 +494,7 @@ Returns one of:
|
|||
(defun xml-parse-string ()
|
||||
"Parse the next whatever. Could be a string, or an element."
|
||||
(let* ((pos (point))
|
||||
(string (progn (if (search-forward "<" nil t)
|
||||
(forward-char -1)
|
||||
(goto-char (point-max)))
|
||||
(string (progn (skip-chars-forward "^<")
|
||||
(buffer-substring-no-properties pos (point)))))
|
||||
;; Clean up the string. As per XML specifications, the XML
|
||||
;; processor should always pass the whole string to the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue