Fix HTML entities inside style elements

This patch causes the contents of the file to be inserted verbatim into
the style element.
This commit is contained in:
Adrian Vollmer 2024-03-26 18:25:19 +01:00
parent 70d3a54215
commit ec6c845a11

View File

@ -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);
};
});