From cec1dc4df9c642765f06fa422e2ca7d85260049f Mon Sep 17 00:00:00 2001 From: Morreski Date: Fri, 11 Jun 2021 11:07:44 +0200 Subject: [PATCH] Handle tag support in graphs --- src/lib/components/actions.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/actions.svelte b/src/lib/components/actions.svelte index a119c4d5..802f2c46 100644 --- a/src/lib/components/actions.svelte +++ b/src/lib/components/actions.svelte @@ -13,7 +13,9 @@ if (!svg) { svg = document.querySelector('#container svg'); } - const svgString = svg.outerHTML.replaceAll('
', '
'); + const svgString = svg.outerHTML + .replaceAll('
', '
') + .replaceAll(/]*)>/g, (m, g) => ``); return toBase64(svgString); };