@Provides @Singleton @SanitizingGadgetRewriter.AllowedAttributes protected Set<String> provideAllowedAttributes() { return ImmutableSet.of("abbr", "align", "alt", "axis", "bgcolor", "border", "cellpadding", "cellspacing", "char", "charoff", "cite", "class", "clear", "color", "cols", "colspan", "compact", "coords", "datetime", "dir", "face", "headers", "height", "href", "hreflang", "hspace", "id", "ismap", "lang", "longdesc", "name", "nohref", "noshade", "nowrap", "rel", "rev", "rowspan", "rules", "scope", "shape", "size", "span", "src", "start", "style", "summary", "title", "type", "usemap", "valign", "value", "vspace", "width"); } }
@Provides @Singleton @SanitizingGadgetRewriter.AllowedAttributes protected Set<String> provideAllowedAttributes() { return ImmutableSet.of("abbr", "align", "alt", "axis", "bgcolor", "border", "cellpadding", "cellspacing", "char", "charoff", "cite", "class", "clear", "color", "cols", "colspan", "compact", "coords", "datetime", "dir", "face", "headers", "height", "href", "hreflang", "hspace", "id", "ismap", "lang", "longdesc", "name", "nohref", "noshade", "nowrap", "rel", "rev", "rowspan", "rules", "scope", "shape", "size", "span", "src", "start", "style", "summary", "title", "type", "usemap", "valign", "value", "vspace", "width"); } }
@Provides @Singleton @SanitizingGadgetRewriter.AllowedAttributes protected Set<String> provideAllowedAttributes() { return ImmutableSet.of("abbr", "align", "alt", "axis", "bgcolor", "border", "cellpadding", "cellspacing", "char", "charoff", "cite", "class", "clear", "color", "cols", "colspan", "compact", "coords", "datetime", "dir", "face", "headers", "height", "href", "hreflang", "hspace", "id", "ismap", "lang", "longdesc", "name", "nohref", "noshade", "nowrap", "rel", "rev", "rowspan", "rules", "scope", "shape", "size", "span", "src", "start", "style", "summary", "title", "type", "usemap", "valign", "value", "vspace", "width"); } }
@Inject public SanitizingGadgetRewriter(@AllowedTags Set<String> allowedTags, @AllowedAttributes Set<String> allowedAttributes, ContentRewriterFeature.Factory rewriterFeatureFactory, CajaCssSanitizer cssSanitizer, ProxyUriManager proxyUriManager) { super(new BasicElementFilter(allowedTags, allowedAttributes), new LinkSchemeCheckFilter(), new StyleFilter(proxyUriManager, cssSanitizer), new LinkFilter(proxyUriManager), new ImageFilter(proxyUriManager), new TargetFilter()); }
@Inject public SanitizingGadgetRewriter(@AllowedTags Provider<Set<String>> allowedTags, @AllowedAttributes Provider<Set<String>> allowedAttributes, ContentRewriterFeature.Factory rewriterFeatureFactory, CajaCssSanitizer cssSanitizer, ProxyUriManager proxyUriManager) { super(new BasicElementFilter(allowedTags, allowedAttributes), new LinkSchemeCheckFilter(), new StyleFilter(proxyUriManager, cssSanitizer), new LinkFilter(proxyUriManager), new ImageFilter(proxyUriManager), new TargetFilter()); }
@Inject public SanitizingGadgetRewriter(@AllowedTags Set<String> allowedTags, @AllowedAttributes Set<String> allowedAttributes, ContentRewriterFeature.Factory rewriterFeatureFactory, CajaCssSanitizer cssSanitizer, ProxyUriManager proxyUriManager) { super(new BasicElementFilter(allowedTags, allowedAttributes), new LinkSchemeCheckFilter(), new StyleFilter(proxyUriManager, cssSanitizer), new LinkFilter(proxyUriManager), new ImageFilter(proxyUriManager), new TargetFilter()); }