Commit f8581bcf authored by Philipp Stephani's avatar Philipp Stephani

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.
parent 232bb691
Pipeline #5652 failed with stage
in 90 minutes and 3 seconds