Simplify sanitization of accepted HTML attributes

This commit is contained in:
Francis Lachapelle
2017-08-22 10:02:28 -04:00
parent 630befd23b
commit c915bc7c95

View File

@@ -615,7 +615,7 @@ static NSData* _sanitizeContent(NSData *theData)
if (!skipAttribute)
[resultPart appendFormat: @" %@=\"%@\"",
name, [value stringByReplacingString: @"\""
withString: @"\\\""]];
withString: @""]];
}
if ([VoidTags containsObject: lowerName])