mirror of
				https://github.com/nkanaev/yarr.git
				synced 2025-10-30 22:43:29 +00:00 
			
		
		
		
	sanitizer forbid
This commit is contained in:
		| @@ -37,7 +37,7 @@ var sanitize = function(content, base) { | ||||
|     if (node.attributes.src && node.attributes.src.value) | ||||
|       node.src = new URL(node.attributes.src.value, base).toString() | ||||
|   }) | ||||
|   return sanitizer.sanitize(content) | ||||
|   return sanitizer.sanitize(content, {FORBID_TAGS: ['style'], FORBID_ATTR: ['style', 'class']}) | ||||
| } | ||||
|  | ||||
| Vue.directive('scroll', { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user