Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

Obfuscate Modifier

Obfuscates a string with special characters making it hard for spam bots to sniff out and scrape off your site. Still appears like the same string to the reader. This is usually used for email addresses.

magic_word: Abracadabra
{{ magic_word | obfuscate }}
{{ Statamic::modify($magic_word)->obfuscate() }}
# visibly appears as Abracadabra
Abracadabra