mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-18 17:58:12 +00:00
fix(mail): use double-quotes for attributes when re-encoding HTML
This commit is contained in:
1 parent
8f3738bfef
commit
b7f0ee7228
1 file changed
+7
-3
@@ -388,6 +388,7 @@
|
||||
}
|
||||
if (appendElement && voidTags)
|
||||
{
|
||||
NSMutableString *value;
|
||||
NSString *type;
|
||||
int i;
|
||||
|
||||
@@ -396,10 +397,13 @@
|
||||
for (i = 0; i < [attributes count]; i++)
|
||||
{
|
||||
[result appendString: @" "];
|
||||
value = [NSMutableString stringWithString: [attributes valueAtIndex: i]];
|
||||
[value replaceString: @"\\" withString: @"\\\\"];
|
||||
[value replaceString: @"\"" withString: @"\\\""];
|
||||
[result appendString: [attributes nameAtIndex: i]];
|
||||
[result appendString: @"='"];
|
||||
[result appendString: [attributes valueAtIndex: i]];
|
||||
[result appendString: @"'"];
|
||||
[result appendString: @"=\""];
|
||||
[result appendString: value];
|
||||
[result appendString: @"\""];
|
||||
|
||||
type = [attributes typeAtIndex: i];
|
||||
if (![type isEqualToString: @"CDATA"])
|
||||
|
||||
Reference in new issue
Block a user