Skip to content

Kirby 4.4.1

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