From: Lars Ingebrigtsen Date: Wed, 18 Oct 2017 22:34:42 +0000 (+0200) Subject: (svg--encode-text): Make strings even more valid X-Git-Tag: emacs-27.0.90~6241 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=32f2ab4bbd83ec638b8fa199c194c594e6c36225;p=emacs.git (svg--encode-text): Make strings even more valid * lisp/svg.el (svg--encode-text): Quote &<>, too. --- diff --git a/lisp/svg.el b/lisp/svg.el index 8639bf11243..241385fa91f 100644 --- a/lisp/svg.el +++ b/lisp/svg.el @@ -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)))