mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	don't strip tags for very large text notes, #1500
This commit is contained in:
		
							parent
							
								
									749b6cb57e
								
							
						
					
					
						commit
						a266d6a3d5
					
				| @ -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, ' '); | ||||
|  | ||||
| @ -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, ' '); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam