forked from Archives/Athou_commafeed
Add rel="noreferrer" to resolve window.opener issue
https://mathiasbynens.github.io/rel-noopener
This commit is contained in:
@@ -92,6 +92,7 @@ public class FeedUtils {
|
||||
whitelist.addProtocols("q", "cite", "http", "https");
|
||||
|
||||
whitelist.addEnforcedAttribute("a", "target", "_blank");
|
||||
whitelist.addEnforcedAttribute("a", "rel", "noreferrer");
|
||||
return whitelist;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user