How to remove the HTML tag in the Work Notes
						
					
					
				
			
		
	
			
	
	
	
	
	
Options
			
				
					
	
			
		
	- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-11-2023 10:43 PM
For an Incident, when I add text in Summary, Findings and Timeline, HTML tags come up in the worknotes.
 
Can someone help me with this? Thanks in advance.
		1 REPLY 1
	
		
		
			
			
			
					
	
			Options
			
				
					
	
			
		
	- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
10-13-2023 02:43 AM
Hi @45120164 ,
Create business rule on incident created or updated
(function executeRule(current, previous) {
    var description = current.description;
    var plainTextDescription = description.replace(/<[^>]+>/g, ''); 
    current.work_notes = plainTextDescription;
})(current, previous);Please mark it solution proposed and helpful if it works.
Thanks,
Anand
