mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-06 11:35:40 +00:00
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:
parent
70d3a54215
commit
ec6c845a11
@ -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);
|
||||
};
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user