コード例 #1
0
ファイル: BannedWordService.cs プロジェクト: vebin/mvcforum
 public string SanitiseBannedWords(string content, IList <string> words)
 {
     if (words != null && words.Any())
     {
         var censor = new CensorUtils(words);
         return(censor.CensorText(content));
     }
     return(content);
 }
コード例 #2
0
ファイル: BannedWordService.cs プロジェクト: lenwen/mvcforum
 public string SanitiseBannedWords(string content, IList<string> words)
 {
     if (words != null && words.Any())
     {
         var censor = new CensorUtils(words);
         return censor.CensorText(content);
     }
     return content;
 }