Bugfix: HTMLTemplateElement is not the right tool to modify innerHTML

This commit is contained in:
djmaze 2020-09-10 18:24:03 +02:00
parent fb35a17208
commit 3fa55a91d8

View file

@ -3,7 +3,7 @@ import { Mime } from 'Common/Mime';
const
doc = document,
tpl = doc.createElement('template'),
tpl = doc.createElement('div'),
isArray = Array.isArray,
htmlmap = {
'&': '&',
@ -437,9 +437,7 @@ export function htmlToPlain(html) {
}
}
text = text.replace(/__bq__start__/gm, '').replace(/__bq__end__/gm, '');
return text;
return text.replace(/__bq__start__/gm, '').replace(/__bq__end__/gm, '');
}
/**