From d4e86934bafe624fa3afdc43c6eb61db46de8d78 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 Dec 2020 10:43:41 +0800 Subject: [PATCH] remove other characters --- seed/toSVG.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/toSVG.js b/seed/toSVG.js index 1fb9180..db50f64 100644 --- a/seed/toSVG.js +++ b/seed/toSVG.js @@ -282,7 +282,7 @@ function toSVG() { svg += ''; - return svg.replace(/[\u00A0-\u2666<>\&]/g, function(c) { + return svg.replace(/[\u00A0-\u2666]/g, function(c) { return '&#'+c.charCodeAt(0) + ';'; }); -- 2.39.2