public override string Clean(string html) { return(HtmlX.MinimalHtml(html, false)); }
public virtual string Clean(string html) { return(HtmlX.MinimalHtml(html, true)); }
/// <summary> /// Create a MinHtml from an HTML string with optional cleaning /// </summary> /// <param name="anyHtml">HTML string</param> /// <param name="isClean">If true, don't clean</param> public MinHtml(string anyHtml, bool isClean) : base(isClean ? anyHtml : HtmlX.MinimalHtml(anyHtml, true)) { }
/// <summary> /// Create a MinHtml from an HTML string (which is cleaned of illegal tags) /// </summary> /// <param name="anyHtml">HTML string</param> public MinHtml(string anyHtml) : base(HtmlX.MinimalHtml(anyHtml, true)) { }
/// <summary> /// Create a MinHtmlNoLinks from an HTML string with optional cleaning /// </summary> /// <param name="anyHtml">HTML string</param> /// <param name="isClean">If true, don't clean</param> public MinHtmlNoLinks(string anyHtml, bool isClean) : base(isClean ? anyHtml : HtmlX.MinimalHtml(anyHtml, false), true) { }
/// <summary> /// Create a MinHtmlNoLinks from an HTML string (which is cleaned of illegal tags) /// </summary> /// <param name="anyHtml">HTML string</param> public MinHtmlNoLinks(string anyHtml) : base(HtmlX.MinimalHtml(anyHtml, false), true) { }