forked from GithubBackups/healthchecks
Set iframe's charset to utf8
This commit is contained in:
parent
46bc7d8306
commit
d4fc314696
@ -137,7 +137,7 @@ $(function () {
|
||||
if (htmlPre.length) {
|
||||
var opts = {USE_PROFILES: {html: true}};
|
||||
var clean = DOMPurify.sanitize(htmlPre.text(), opts);
|
||||
var blob = new Blob([clean], {type: "text/html"});
|
||||
var blob = new Blob([clean], {type: "text/html; charset=utf-8"});
|
||||
|
||||
htmlPre.remove();
|
||||
document.getElementById("email-body-html-iframe").src = URL.createObjectURL(blob);
|
||||
|
@ -10,7 +10,7 @@ $(function () {
|
||||
if (htmlPre.length) {
|
||||
var opts = {USE_PROFILES: {html: true}};
|
||||
var clean = DOMPurify.sanitize(htmlPre.text(), opts);
|
||||
var blob = new Blob([clean], {type: "text/html"});
|
||||
var blob = new Blob([clean], {type: "text/html; charset=utf-8"});
|
||||
|
||||
htmlPre.remove();
|
||||
document.getElementById("email-body-html-iframe").src = URL.createObjectURL(blob);
|
||||
|
Loading…
x
Reference in New Issue
Block a user