aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2017-10-19 00:34:42 +0200
committerLars Ingebrigtsen2017-10-19 00:34:42 +0200
commit32f2ab4bbd83ec638b8fa199c194c594e6c36225 (patch)
tree046b91df14b381eb1ed07c1d1ca2820ea85eb8dd
parent38738f61bc16f5792220467730634598ac92f149 (diff)
downloademacs-32f2ab4bbd83ec638b8fa199c194c594e6c36225.tar.gz
emacs-32f2ab4bbd83ec638b8fa199c194c594e6c36225.zip
(svg--encode-text): Make strings even more valid
* lisp/svg.el (svg--encode-text): Quote &<>, too.
-rw-r--r--lisp/svg.el2
1 files changed, 1 insertions, 1 deletions
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
163 ;; Apparently the SVG renderer needs to have all non-ASCII 163 ;; Apparently the SVG renderer needs to have all non-ASCII
164 ;; characters encoded. 164 ;; characters encoded.
165 (with-temp-buffer 165 (with-temp-buffer
166 (insert text) 166 (insert (xml-escape-string text))
167 (goto-char (point-min)) 167 (goto-char (point-min))
168 (while (not (eobp)) 168 (while (not (eobp))
169 (let ((char (following-char))) 169 (let ((char (following-char)))