headline Modifier

Format the given string, usually a headline or title, with either AP or MLA style.

Accepts ap or mla as an argument. Defaults to ap if none is specified.

title: I see a bad-ass mother who don't take no crap off of nobody.
{{ title | headline('ap') }}
{{ Statamic::modify($title)->headline('ap') }}
I See a Bad-Ass Mother Who Don't Take No Crap Off of Nobody.
{{ title | headline('mla') }}
{{ Statamic::modify($title)->headline('mla') }}
I See a Bad-ass Mother Who Don't Take No Crap Off of Nobody.
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →