Skip to content

Kirby 5.0.1

$field->widont()

Avoids typographical widows in strings by replacing the last space with  

$field->widont(): Kirby\Content\Field

Return type

Kirby\Content\Field

Examples

<?= $page->title()->widont() ?>