public void TestFilterHtml() { string testStr = "<style type=\"text/css\">.txt01 {</style> ddd <script>abc {</script>"; string newStr = ConvertUtil.FilterHtml(testStr); Console.WriteLine("newStr = " + newStr); }
public string FilterHtml(string source, int maxLength, bool ellipsis) { string result = ConvertUtil.FilterHtml(source); return(SubString(result, maxLength, ellipsis)); }