]> git.eshelyaron.com Git - emacs.git/commit
Reject invalid characters in XML strings (Bug#41094).
authorPhilipp Stephani <phst@google.com>
Sat, 23 May 2020 11:56:09 +0000 (13:56 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 23 May 2020 12:01:17 +0000 (14:01 +0200)
commitf8581bcf6a1942ebd331cae20e32945a3a86a3d1
tree3f1a946cba9cdac5b03f09ec1b01be962256295f
parent232bb691c1095574b85b358c7f33a46d2ea79f29
Reject invalid characters in XML strings (Bug#41094).

* lisp/xml.el (xml-escape-string): Search for invalid characters.
(xml-invalid-character): New error symbol.

* test/lisp/xml-tests.el (xml-print-invalid-cdata): New unit test.

* etc/NEWS: Document new behavior.
etc/NEWS
lisp/xml.el
test/lisp/xml-tests.el