(svg--encode-text): Make strings even more valid

* lisp/svg.el (svg--encode-text): Quote &<>, too.
This commit is contained in:
Lars Ingebrigtsen 2017-10-19 00:34:42 +02:00
parent 38738f61bc
commit 32f2ab4bbd

View file

@ -163,7 +163,7 @@ otherwise. IMAGE-TYPE should be a MIME image type, like
;; Apparently the SVG renderer needs to have all non-ASCII
;; characters encoded.
(with-temp-buffer
(insert text)
(insert (xml-escape-string text))
(goto-char (point-min))
(while (not (eobp))
(let ((char (following-char)))