# URL Encode Except Slashes

URL-encodes a string. Just like [urlencode](/modifiers/urldecode.md), but doesn't encode forward slashes (`/`).

```yaml
string: please and thank you/Mommy
```

::tabs

::tab antlers
```antlers
{{ string | urlencode_except_slashes }}
```
::tab blade
```blade
{!! Statamic::modify($string)->urlencode_except_slashes() !!}
```
::

```html
please+and+thank+you/Mommy
```
