deslugify Modifier

Replaces all hyphens and underscores in a string with spaces. The opposite of dashify.

title: Just-Because-I-Can
{{ title | deslugify }}
{{ Statamic::modify($title)->deslugify() }}
Just Because I Can
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →