(svg--encode-text): Make strings even more valid
* lisp/svg.el (svg--encode-text): Quote &<>, too.
This commit is contained in:
parent
38738f61bc
commit
32f2ab4bbd
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue