mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/stable'
This commit is contained in:
		| @@ -43,7 +43,10 @@ class NoteContentProtectedFulltextExp extends Expression { | ||||
|             content = content.toLowerCase(); | ||||
|  | ||||
|             if (type === 'text' && mime === 'text/html') { | ||||
|                 if (content.length < 20000) { // striptags is slow for very large notes | ||||
|                     content = striptags(content); | ||||
|                 } | ||||
|  | ||||
|                 content = content.replace(/ /g, ' '); | ||||
|             } | ||||
|  | ||||
|   | ||||
| @@ -29,7 +29,10 @@ class NoteContentUnprotectedFulltextExp extends Expression { | ||||
|             content = content.toString().toLowerCase(); | ||||
|  | ||||
|             if (type === 'text' && mime === 'text/html') { | ||||
|                 if (content.length < 20000) { // striptags is slow for very large notes | ||||
|                     content = striptags(content); | ||||
|                 } | ||||
|  | ||||
|                 content = content.replace(/ /g, ' '); | ||||
|             } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user