mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	Potential fix for code scanning alert no. 64: Double escaping or unescaping
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
		| @@ -172,10 +172,10 @@ export class NoteSummarizationTool implements ToolHandler { | ||||
|         text = text | ||||
|             .replace(/</g, '<') | ||||
|             .replace(/>/g, '>') | ||||
|             .replace(/&/g, '&') | ||||
|             .replace(/"/g, '"') | ||||
|             .replace(/'/g, "'") | ||||
|             .replace(/ /g, ' '); | ||||
|             .replace(/ /g, ' ') | ||||
|             .replace(/&/g, '&'); | ||||
|  | ||||
|         // Normalize whitespace | ||||
|         text = text.replace(/\s+/g, ' ').trim(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user