Reputation: 2287
Does anyone knows a .net alternative for obfuscation like this way?
as an output I'd like to be something like:
<A HREF="mailto:
yourname@domain.com">
yourname@domain.com
</A>"
Upvotes: 1
Views: 1308
Reputation: 700720
You can encode a string like that using:
email =
String.Concat(email.Select(c => "&#" + ((int)c).ToString() + ";").ToArray());
Upvotes: 4