From ec6c845a1146a8b6ea29889115cccf031e549970 Mon Sep 17 00:00:00 2001 From: Adrian Vollmer Date: Tue, 26 Mar 2024 18:25:19 +0100 Subject: [PATCH] Fix HTML entities inside style elements This patch causes the contents of the file to be inserted verbatim into the style element. --- zundler/assets/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zundler/assets/main.js b/zundler/assets/main.js index e3758d2..f05c19c 100644 --- a/zundler/assets/main.js +++ b/zundler/assets/main.js @@ -111,7 +111,7 @@ var embed_css = function(doc) { var href = link.getAttribute('href'); let [path, get_parameters, anchor] = split_url(href); path = normalize_path(path); - style.innerText = retrieve_file(path); + style.textContent = retrieve_file(path); link.replaceWith(style); }; });