Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not use doc.body

thecodrr706007e0fa25
diff --git a/packages/core/content-types/tiny.js b/packages/core/content-types/tiny.js
index 352c0ee37..bdd7576a8 100644
--- a/packages/core/content-types/tiny.js
+++ b/packages/core/content-types/tiny.js
@@ -20,7 +20,7 @@ class Tiny {
let doc = HTMLParser.createElement("div");
doc.innerHTML = this.data;
- return doc.body.textContent.trim();
+ return doc.textContent.trim();
}
toMD() {