Skip to content

Kirby 4.5.0

$field->widont()

Avoids typographical widows in strings by replacing the last space with  

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

Return type

Kirby\Content\Field

Example

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