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

URL Encode Modifier

URL-encodes a string. The inverse of urldecode

string: I just want & need $pecial characters!
{{ string | urlencode }}
{!! Statamic::modify($string)->urlencode() !!}
I+just+want+%26+need+%24pecial+characters%21