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

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