Skip to content

Kirby 4.5.0

$field->html()

Converts the field content to valid HTML

$field->html(): Kirby\Content\Field

Return type

Kirby\Content\Field

Aliases

You can use the following aliases for this field method in your template:

  • $field->h(…)

Example

<h1><?= $page->title()->html() ?></h1>