API Diff between 8.1.722-beta and 7.0.473
146 Additions
14 Removals
Ganss.XSS
Ganss.Xss
-
public class FilterUrlEventArgs : EventArgs
-
public class HtmlFormatter : HtmlMarkupFormatter
-
public class HtmlSanitizer : IHtmlSanitizer
- public static readonly Regex DefaultDisallowedCssPropertyValue
- public static Func<HtmlParser> DefaultHtmlParserFactory { get; set; }
- public static bool DefaultKeepChildNodes { get; set; }
- public static IMarkupFormatter DefaultOutputFormatter { get; set; }
- public static IStyleFormatter DefaultStyleFormatter { get; set; }
- public bool AllowDataAttributes { get; set; }
- public ISet<CssRuleType> AllowedAtRules { get; }
- public ISet<string> AllowedAttributes { get; }
- public ISet<string> AllowedClasses { get; }
- public ISet<string> AllowedCssProperties { get; }
- public ISet<string> AllowedSchemes { get; }
- public ISet<string> AllowedTags { get; }
- public Regex DisallowCssPropertyValue { get; set; }
- public Func<HtmlParser> HtmlParserFactory { get; set; }
- public bool KeepChildNodes { get; set; }
- public IMarkupFormatter OutputFormatter { get; set; }
- public IStyleFormatter StyleFormatter { get; set; }
- public ISet<string> UriAttributes { get; }
- public event EventHandler<FilterUrlEventArgs> FilterUrl
- public event EventHandler<PostProcessDomEventArgs> PostProcessDom
- public event EventHandler<PostProcessNodeEventArgs> PostProcessNode
- public event EventHandler<RemovingAtRuleEventArgs> RemovingAtRule
- public event EventHandler<RemovingAttributeEventArgs> RemovingAttribute
- public event EventHandler<RemovingCommentEventArgs>
- public event EventHandler<RemovingCssClassEventArgs> RemovingCssClass
- public event EventHandler<RemovingStyleEventArgs> RemovingStyle
- public event EventHandler<RemovingTagEventArgs> RemovingTag
- public HtmlSanitizer()
- public HtmlSanitizer(HtmlSanitizerOptions options)
- protected static string DecodeCss(string css)
- protected Iri GetSafeIri(string url)
- protected virtual void OnFilteringUrl(FilterUrlEventArgs e)
- protected virtual void OnPostProcessDom(PostProcessDomEventArgs e)
- protected virtual void OnPostProcessNode(PostProcessNodeEventArgs e)
- protected virtual void OnRemovingAtRule(RemovingAtRuleEventArgs e)
- protected virtual void OnRemovingAttribute(RemovingAttributeEventArgs e)
- protected virtual void (RemovingCommentEventArgs e)
- protected virtual void OnRemovingCssClass(RemovingCssClassEventArgs e)
- protected virtual void OnRemovingStyle(RemovingStyleEventArgs e)
- protected virtual void OnRemovingTag(RemovingTagEventArgs e)
- public string Sanitize(string html, string baseUrl = "", IMarkupFormatter outputFormatter = null)
- public string SanitizeDocument(string html, string baseUrl = "", IMarkupFormatter outputFormatter = null)
- public string SanitizeDocument(Stream html, string baseUrl = "", IMarkupFormatter outputFormatter = null)
- public IHtmlDocument SanitizeDom(string html, string baseUrl = "")
- public IHtmlDocument SanitizeDom(IHtmlDocument document, IHtmlElement context = null, string baseUrl = "")
- protected void SanitizeStyle(IElement element, string baseUrl)
- protected virtual string SanitizeUrl(IElement element, string url, string baseUrl)
-
public static class HtmlSanitizerDefaults
-
public class HtmlSanitizerOptions
-
public interface IHtmlSanitizer
-
public class Iri
- public bool IsAbsolute { get; }
- public string Scheme { get; }
- public string Value { get; }
- public Iri(string value, string scheme = null)
-
public class PostProcessDomEventArgs : EventArgs
-
public class PostProcessNodeEventArgs : EventArgs
-
public enum RemoveReason
-
public class RemovingAtRuleEventArgs : CancelEventArgs
-
public class RemovingAttributeEventArgs : CancelEventArgs
-
public class : CancelEventArgs
-
public class RemovingCssClassEventArgs : CancelEventArgs
-
public class RemovingStyleEventArgs : CancelEventArgs
-
public class RemovingTagEventArgs : CancelEventArgs