mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-01 03:27:52 +00:00 
			
		
		
		
	 f78df91dd2
			
		
	
	f78df91dd2
	
	
	
		
			
			- Update sidebar design - Move every contact data to contacts module - Revert go to next conversation feature - Fix issues with new conversation in action cable - Escape HTML content - Broadcast event when conversation.contact changes. Co-authored-by: Sojan <sojan@pepalo.com>
		
			
				
	
	
		
			9 lines
		
	
	
		
			205 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			205 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| export const escapeHtml = (unsafe = '') => {
 | |
|   return unsafe
 | |
|     .replace(/&/g, '&')
 | |
|     .replace(/</g, '<')
 | |
|     .replace(/>/g, '>')
 | |
|     .replace(/"/g, '"')
 | |
|     .replace(/'/g, ''');
 | |
| };
 |