10 lines
		
	
	
		
			315 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			315 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const sanitizeHtmlOptions = {
 | |
|     allowedTags: ["b", "i", "em", "strong", "a", "p", "span", "ul", "ol", "li", "h1", "h2", "h3", "h4", "h5", "h6", "img"],
 | |
|     allowedAttributes: {
 | |
|         a: ["href"],
 | |
|         img: ["src", "alt", "width", "height", "class", "style"],
 | |
|     },
 | |
| };
 | |
| 
 | |
| module.exports = sanitizeHtmlOptions;
 | 
