Hi,
I Quick Code Snippet in order to Obfuscate Email Addresses to prevent Web Crawlers from leech them ...
Code
public static String Obfuscate(this String s)
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < s.Length; i++)
{
sb.AppendFormat("&#{0};", (Int32)s[i]);
}
return sb.ToString();
}
Usage Sample :
static void Main(string[] args)
{
String email = "me@me.com";
Console.WriteLine(email.Obfuscate());
}
Output :
me@me.com
Hope this help’s!
Views(776)

