/// <summary> /// Registers the out of the box supported sanitation checks. /// </summary> private void RegisterChecks() { AttributeCheckRegistry.Add(HtmlSanitizerCheckType.Url, new HtmlSanitizerAttributeCheckHandler(UrlCheckHandler)); AttributeCheckRegistry.Add(HtmlSanitizerCheckType.AllowAttribute, new HtmlSanitizerAttributeCheckHandler(x => SanitizerOperation.DoNothing)); }
/// <summary> /// Registers the out of the box supported sanitation checks. /// </summary> private void RegisterChecks() { AttributeCheckRegistry.Add(HtmlSanitizerCheckType.Url, new UrlCheckHandler()); AttributeCheckRegistry.Add(HtmlSanitizerCheckType.AllowAttribute, new AllowAttributeHandler()); AttributeCheckRegistry.Add(HtmlSanitizerCheckType.UrlOrBase64Data, new UrlOrBase64DataCheckHandler()); }