Skip to content Skip to footer navigation

Obfuscate Email Modifier

Encodes an email address with HTML entities while keeping it readable in the browser. Bots that decode HTML can still read the address.

{{ holler | obfuscate_email }}
{!! Statamic::modify($holler)->obfuscateEmail() !!}
# output appears as [email protected]
holler@example.com