Esempio n. 1
0
 string GetAboutText(string htmlAbout)
 {
     if (!string.IsNullOrEmpty(htmlAbout))
     {
         return(HtmlUtils.StripTags(MarkdownHelper.PreprocessHtml(HttpUtility.HtmlDecode(HttpUtility.HtmlDecode(htmlAbout))), true));
     }
     return(null);
 }
 public void PreprocessHtmlTest(string html, string preprocessedHtml)
 {
     Assert.Equal(preprocessedHtml, MarkdownHelper.PreprocessHtml(html));
 }