mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	sanitize label value
This commit is contained in:
		| @@ -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); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user