From b8c0878307ce600c7ec5082f5f940febf663a722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Thu, 28 Dec 2023 16:40:53 +0100 Subject: [PATCH] Escape angle brackets in the playground script (#325) --- 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() + ';')