Skip to content

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

fix: do not do doc.body.innerHTML

thecodrrb74a2d70e94c
diff --git a/packages/core/content-types/tiny.js b/packages/core/content-types/tiny.js
index 8599d0af0..352c0ee37 100644
--- a/packages/core/content-types/tiny.js
+++ b/packages/core/content-types/tiny.js
@@ -81,7 +81,7 @@ class Tiny {
}
}
}
- return doc.body.innerHTML;
+ return doc.innerHTML;
}
async extractAttachments(store) {
@@ -130,7 +130,7 @@ class Tiny {
}
}
}
- return { data: doc.body.innerHTML, attachments };
+ return { data: doc.innerHTML, attachments };
}
}
export default Tiny;