Reference

kirbytext()

Parses KirbyTags and Markdown in the given string. Shortcut for $kirby->kirbytext()

kirbytext(string $text = null, array $data = [ ]): string

Parameters

Name Type Default Description
$text string null
$data array [ ]

Return type

string

Example

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

Parse KirbyText for another page

<?= kirbytext('(image: road.jpg)', $page->children()->first()) ?>

Source code

kirby/config/helpers.php#L414