Simplify sanitization of accepted HTML attributes
This will avoid converting & to an HTML entity.pull/237/merge
parent
1ac2ec7ad6
commit
c6dbb88dc1
|
@ -686,7 +686,8 @@ static NSData* _sanitizeContent(NSData *theData)
|
|||
|
||||
if (!skipAttribute)
|
||||
[resultPart appendFormat: @" %@=\"%@\"",
|
||||
name, [value safeStringByEscapingXMLString: NO]];
|
||||
name, [value stringByReplacingString: @"\""
|
||||
withString: @""]];
|
||||
}
|
||||
|
||||
if ([VoidTags containsObject: lowerName])
|
||||
|
|
Loading…
Reference in New Issue