/// <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));
 }
Esempio n. 2
0
 /// <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());
 }