Skip to content

Instantly share code, notes, and snippets.

@ChristianSch
Created June 15, 2023 20:42
Show Gist options
  • Save ChristianSch/8e5f01f142a079df8219f537700c27a0 to your computer and use it in GitHub Desktop.
Save ChristianSch/8e5f01f142a079df8219f537700c27a0 to your computer and use it in GitHub Desktop.
hiding emails with alpine.js
<span x-data="{'contact': 'foo' + '@' + 'bar.com','contactMail':'mailto:foo' + '@' + 'bar.com'}">
<a x-bind:href="contactMail">
<span x-text="contact"></span>
</a>
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment