diff --git a/UI/MailPartViewers/UIxMailPartHTMLViewer.m b/UI/MailPartViewers/UIxMailPartHTMLViewer.m
index 2e169d4f9..b3da8a4d0 100644
--- a/UI/MailPartViewers/UIxMailPartHTMLViewer.m
+++ b/UI/MailPartViewers/UIxMailPartHTMLViewer.m
@@ -520,10 +520,11 @@ _xmlCharsetForCharset (NSString *charset)
{
value = [_attributes valueAtIndex: count];
lowerValue = [value lowercaseString];
- skipAttribute = ([lowerValue rangeOfString: @"://"].location == NSNotFound
- && ![lowerValue hasPrefix: @"mailto:"]
- && ![lowerValue hasPrefix: @"#"]) ||
- [lowerValue hasPrefix: @"javascript:"];
+ skipAttribute =
+ ([lowerValue rangeOfString: @"://"].location == NSNotFound
+ && ![lowerValue hasPrefix: @"mailto:"]
+ && ![lowerValue hasPrefix: @"#"])
+ || [lowerValue rangeOfString: @"javascript:"].location != NSNotFound;
if (!skipAttribute)
[resultPart appendString: @" rel=\"noopener\""];
}