From 32f2ab4bbd83ec638b8fa199c194c594e6c36225 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 19 Oct 2017 00:34:42 +0200 Subject: (svg--encode-text): Make strings even more valid * lisp/svg.el (svg--encode-text): Quote &<>, too. --- lisp/svg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/svg.el') 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))) -- cgit v1.2.3