Skip to content

Kirby 4.4.1

$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

Kirby\Content\Field

Example

<h3><?= $page->title() ?></h3>
<p><?= $page->text()->kt()->inline() ?></p>