mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	sanitize label value
This commit is contained in:
		
							parent
							
								
									fdffc27bb6
								
							
						
					
					
						commit
						2389ab30f8
					
				@ -103,8 +103,8 @@ function createNote(req) {
 | 
			
		||||
    
 | 
			
		||||
    if (labels) {
 | 
			
		||||
        for (const labelName in labels) {
 | 
			
		||||
            console.log('set label ' + labelName + ' on the new note!');
 | 
			
		||||
            note.setLabel(labelName, labels[labelName]);
 | 
			
		||||
            const labelValue = htmlSanitizer.sanitize(labels[labelName]);
 | 
			
		||||
            note.setLabel(labelName, labelValue);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user