$field->inline()
Strips all block-level HTML elements from the field value, it can be safely placed inside of other inline elements without the risk of breaking the HTML structure.
$field->inline(): Kirby\Content\Field
Return type
Example
<h3><?= $page->title() ?></h3>
<p><?= $page->text()->kt()->inline() ?></p>