This commit is contained in:
djmaze 2020-10-28 14:54:55 +01:00
parent ff6fb41812
commit 48769f0aca

View file

@ -128,7 +128,7 @@ export function htmlToPlain(html) {
.replace(/"/gi, '"')
.replace(/<[^>]*>/gm, '');
text = splitPlainText(tpl.innerText
text = splitPlainText(tpl.content.textContent
.replace(/\n[ \t]+/gm, '\n')
.replace(/[\n]{3,}/gm, '\n\n')
.replace(/&gt;/gi, '>')