summaryrefslogtreecommitdiff
path: root/lisp/svg.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2017-10-19 00:34:42 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2017-10-19 00:34:42 +0200
commit32f2ab4bbd83ec638b8fa199c194c594e6c36225 (patch)
tree046b91df14b381eb1ed07c1d1ca2820ea85eb8dd /lisp/svg.el
parent38738f61bc16f5792220467730634598ac92f149 (diff)
downloademacs-32f2ab4bbd83ec638b8fa199c194c594e6c36225.tar.gz
(svg--encode-text): Make strings even more valid
* lisp/svg.el (svg--encode-text): Quote &<>, too.
Diffstat (limited to 'lisp/svg.el')
-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
;; 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)))