mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-12 00:38:51 +00:00
Simplify sanitization of accepted HTML attributes
This will avoid converting & to an HTML entity.
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user