Filter Emails id (For cross site scripting)

Ranjeet_8
Posted by Ranjeet_8 under ASP.NET category on | Points: 40 | Views : 1004

public string ReturnEmailID(string YourEmailID)
{
return Regex.Replace(YourEmailID, "[^A-Za-z0-9._@-]", "");
}

Comments or Responses

Login to post response