Skip to content

Kirby 3.5.7.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\Cms\Field

Return type

Kirby\Cms\Field

Example

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