Commit 30112f06 authored by Maud Marty's avatar Maud Marty
Browse files

fix: remove @ in email GNP-5968

parent 88cc7afd
......@@ -210,7 +210,7 @@
<tr>
<td>{{ row.type }}</td>
<td>{{ row.name }}</td>
<td>{{ row.email }}</td>
<td>{{ parseEmail(row.email) }}</td>
<td>{{ row.institutionName }}</td>
</tr>
</ng-template>
......
......@@ -103,4 +103,8 @@ export class StudyCardComponent implements OnInit {
});
}
parseEmail(email: string){
return email.replace("@", "_at_")
  • Simple and straightforward. If you want to have fun : https://blog.mailtrap.io/email-obfuscation/ and simlpy to adapt this in an angular and clever way:

    <SCRIPT LANGUAGE="JavaScript">
    user = 'name';
    site = 'domain.com';
    document.write('<a href=\"mailto:' + user + '@' + site + '\">');
    document.write(user + '@' + site + '</a>');
    </SCRIPT> 

    But there are apparently cleaner way to do that: https://npm.io/package/ngx-email-obfuscation

  • Nice, we have a look

Please register or sign in to reply
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment