using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase
{
public static class ConvertExtension
{
///
/// 删除特殊字符 by ttzhao 2020.6.20
///
///
///
///
public static string RemoveSpecialChar(this string text, params string[] characters)
{
//{ ":", ":", "/", "\\", "\"", "?", "✅", "◆", "‼️" }
string str = text;
List specialCharacters = new List(characters);
specialCharacters.ForEach(c =>
{
if (c.Length > 0)
str = str.Replace(c, "");
});
return str;
}
}
}