Skip to content

Kirby 5.0.4

$field->kirbytext()

Converts the field content from Markdown/Kirbytext to valid HTML

$field->kirbytext(array $options = [ ]): Kirby\Content\Field

Parameters

Name Type Default
$options array [ ]

Return type

Kirby\Content\Field

This method modifies the existing $field object it is applied to and returns it again.

Aliases

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

  • $field->kt(…)

Examples

<?= $page->text()->kirbytext() ?>