Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
don't strip tags for very large text notes, #1500
zadama266d6a3d563
diff --git a/src/services/search/expressions/note_content_protected_fulltext.js b/src/services/search/expressions/note_content_protected_fulltext.jsindex fd8bf91287..d248385479 100644--- a/src/services/search/expressions/note_content_protected_fulltext.js+++ b/src/services/search/expressions/note_content_protected_fulltext.js@@ -44,7 +44,7 @@ class NoteContentProtectedFulltextExp extends Expression {if (type === 'text'&& mime === 'text/html'- && content.length < 50000 // striptags is very slow for large notes+ && content.length < 20000 // striptags is very slow for large notes) {content = striptags(content);content = content.replace(/ /g, ' ');diff --git a/src/services/search/expressions/note_content_unprotected_fulltext.js b/src/services/search/expressions/note_content_unprotected_fulltext.jsindex c9212a4313..7f8df513fc 100644--- a/src/services/search/expressions/note_content_unprotected_fulltext.js+++ b/src/services/search/expressions/note_content_unprotected_fulltext.js@@ -30,7 +30,7 @@ class NoteContentUnprotectedFulltextExp extends Expression {if (type === 'text'&& mime === 'text/html'- && content.length < 50000 // striptags is very slow for large notes+ && content.length < 20000 // striptags is very slow for large notes) {content = striptags(content);content = content.replace(/ /g, ' ');