This commit is contained in:
the-djmaze 2023-03-06 11:55:32 +01:00
parent 5436253ffd
commit 8c7fd77762

View file

@ -266,7 +266,7 @@ export const
tmpl.innerHTML = html
// Strip Microsoft comments
.replace(/<!--\[if[\s\S]*?endif\]-->/gi, '')
.replace(/<!--\[if[\s\S]*?-->/gi, '')
// .replace(/<pre[^>]*>[\s\S]*?<\/pre>/gi, pre => pre.replace(/\n/g, '\n<br>'))
// Not supported by <template> element
// .replace(/<!doctype[^>]*>/gi, '')