Even though the URL [email protected]
does not appear in the source code, you will see this email address as a clickable hyperlink, at least if you have JavaScript enabled: [Personal information, requires JavaScript]
.
This is based on the shortcode obfuscated-email
.
Shortcode obfuscated-email
You can change the text to be displayed as the clickable hyperlink to be [Personal information, requires JavaScript] .
1You can change the text to be displayed as the link to be {{< obfuscated-email plain="[email protected]" text="anything you want" >}}.
Shortcode obfuscated-link
There is a similar but more general shortcode named obfuscated-link
, which accepts an arbitrary URL and protects it from prying eyes.
While whitespace around the JavaScript required to access phone number is preserved, punctuation, such as JavaScript required to access link address , is appended without whitespace.
1While whitespace around the {{< obfuscated-link plain="tel:+1555 55 55" text="obfuscated link" >}} is preserved,
2punctuation, such as {{< obfuscated-link plain="https://secret.example.com" text="a comma" >}}, is appended without whitespace.