Beispiel #1
0
 public override string Clean(string html)
 {
     return(HtmlX.MinimalHtml(html, false));
 }
Beispiel #2
0
 public virtual string Clean(string html)
 {
     return(HtmlX.MinimalHtml(html, true));
 }
Beispiel #3
0
 /// <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))
 {
 }
Beispiel #4
0
 /// <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))
 {
 }
Beispiel #5
0
 /// <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)
 {
 }
Beispiel #6
0
 /// <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)
 {
 }