remove other characters
authorAlan Knowles <alan@roojs.com>
Wed, 16 Dec 2020 02:43:41 +0000 (10:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 16 Dec 2020 02:43:41 +0000 (10:43 +0800)
seed/toSVG.js

index 1fb9180..db50f64 100644 (file)
@@ -282,7 +282,7 @@ function toSVG() {
     svg += '</svg>';
 
     
-    return svg.replace(/[\u00A0-\u2666<>\&]/g, function(c) {
+    return svg.replace(/[\u00A0-\u2666]/g, function(c) {
         return '&#'+c.charCodeAt(0) + ';';
     });