Skip to content

Kirby 4.1.2

$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() ?>