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
each stripped tag will be replace by a space, #3355
zadam8ea3608bf1dd
diff --git a/src/services/search/expressions/note_content_fulltext.js b/src/services/search/expressions/note_content_fulltext.jsindex 548578c2bc..e6c182ed60 100644--- a/src/services/search/expressions/note_content_fulltext.js+++ b/src/services/search/expressions/note_content_fulltext.js@@ -100,7 +100,7 @@ class NoteContentFulltextExp extends Expression {if (type === 'text' && mime === 'text/html') {if (!this.raw && content.length < 20000) { // striptags is slow for very large notes// allow link to preserve URLs: https://github.com/zadam/trilium/issues/2412- content = striptags(content, ['a']);+ content = striptags(content, ['a'], ' ');// at least the closing tag can be easily strippedcontent = content.replace(/<\/a>/ig, "");