fix(mail): mind html encoded curly bracket

This commit is contained in:
Hivert Quentin
2026-06-18 10:43:15 +02:00
parent 41aa325e12
commit 9be7b7a7bc
+2 -2
View File
@@ -1061,11 +1061,11 @@ static int cssEscapingCount;
// Remove {{ and }} as they are interprated by angularJS with no way of escaping
regex = [NSRegularExpression regularExpressionWithPattern:@"\\{\\{"
regex = [NSRegularExpression regularExpressionWithPattern:@"(\\{\\{)|({{)"
options: NSRegularExpressionCaseInsensitive error:&error];
newResult = [regex stringByReplacingMatchesInString:result options:0 range:NSMakeRange(0, [result length]) withTemplate:@"{\\\\{"];
result = [NSString stringWithString: newResult];
regex = [NSRegularExpression regularExpressionWithPattern:@"\\}\\}"
regex = [NSRegularExpression regularExpressionWithPattern:@"(\\}\\})|(}})"
options: NSRegularExpressionCaseInsensitive error:&error];
newResult = [regex stringByReplacingMatchesInString:result options:0 range:NSMakeRange(0, [result length]) withTemplate:@"}/}"];
result = [NSString stringWithString: newResult];