Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

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