From 5a1e793c9d085cbd8951ea59a6fe2b3f0c20a287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Wed, 27 Dec 2023 19:30:29 +0100 Subject: [PATCH] Escape angle brackets in the playground script --- docs/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.html b/docs/index.html index b1c3726..8860a36 100644 --- a/docs/index.html +++ b/docs/index.html @@ -69,6 +69,7 @@ // formatting default: value = serialize(compile(`[namespace]{${value.target.textContent}}`), middleware([prefixer, stringify])) + value = value.replace(//g, '>') value = value.replace(/(;|\})/g, (match, group) => group + (group === '}' ? '\n\n' : '\n')) value = value.replace(/(.*?)\{/g, (match, group) => '' + group.trim() + ' {\n') value = value.replace(/:(.*);/g, (match, group) => ': ' + group.trim() + ';')