in the text field of the email I get [email protected]. How to remove it?

0

It turns out that I have a datatable that lists personal data of people, and one of them is the mail, when I test it locally, it looks good mail, but from the production site it shows me the email with the word [email protected] the result of the mail that I show, comes from the database, and I use C # with razor to visualize it.

I was looking at a possible solution to remove [email protected] and show the mail. In the solution was to place @ the tag , that is: @ , but I was trying using a replace as follows:

 .....
<td>
  @item.email.Replace("@","<code>@</code>")
</td> 
...... //resto de codigo

but when you try this way, you do not recognize the tag code, but consider it as a string, showing for example:  correoprueba @ gmail.com

The other solution that I believe, is to do some java script on the server, where the hosted site is, but I do not know what I should do.

Any ideas on how to solve this problem? I await your answers.

    
asked by Danilo 03.01.2017 в 22:37
source

2 answers

1

I have found a solution. I had to do it like this:

 Html.Raw(item.email.Replace("@","<code>@</code>"))
    
answered by 04.01.2017 / 16:55
source
0

Try putting mail between these tags

<!-Email_off-> [email protected] <!-/Email_off->
    
answered by 03.01.2017 в 23:57