mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-02 19:36:12 +01:00 
			
		
		
		
	sanitize label value
This commit is contained in:
		@@ -103,8 +103,8 @@ function createNote(req) {
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    if (labels) {
 | 
					    if (labels) {
 | 
				
			||||||
        for (const labelName in labels) {
 | 
					        for (const labelName in labels) {
 | 
				
			||||||
            console.log('set label ' + labelName + ' on the new note!');
 | 
					            const labelValue = htmlSanitizer.sanitize(labels[labelName]);
 | 
				
			||||||
            note.setLabel(labelName, labels[labelName]);
 | 
					            note.setLabel(labelName, labelValue);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user