Skip to content

Instantly share code, notes, and snippets.

@chancesmith
Created June 9, 2016 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chancesmith/c7dbc4ca82b203031c1b4e8906fe8ec2 to your computer and use it in GitHub Desktop.
Save chancesmith/c7dbc4ca82b203031c1b4e8906fe8ec2 to your computer and use it in GitHub Desktop.
Hide email address. Replaces NO and FIND with @ and .
<a href = "mailto:sarajaneviaNOgmailFINDcom"
onclick = "this.href=this.href
.replace(/NO/,'&#64;')
.replace(/FIND/,'&#46;')"
class="btn btn-default btn-lg"><i class="fa fa-envelope fa-fw"></i> <span class="network-name">Email Us</span></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment