Created
June 15, 2023 20:42
-
-
Save ChristianSch/8e5f01f142a079df8219f537700c27a0 to your computer and use it in GitHub Desktop.
hiding emails with alpine.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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