Skip to content

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

fix: trim text extracted from html

thecodrrba006ded29c4
diff --git a/packages/core/content-types/tiny.js b/packages/core/content-types/tiny.js
index ca3bf5847..d72b1977c 100644
--- a/packages/core/content-types/tiny.js
+++ b/packages/core/content-types/tiny.js
@@ -21,7 +21,7 @@ class Tiny {
} else {
return decode(
this.data.replace(/<br[^>]*>/gi, "\n").replace(/<[^>]+>/g, "")
- );
+ ).trim();
}
}