# kirbytext()

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

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/helpers.php#L312>

****

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

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$text` | `string` or `null` | `null` | – |
| `$data` | `array` | `[ ]` | – |

## Return type

`string`

## Alias

`kt()`

## Examples

```php
<?= kirbytext($page->text()) ?>
<?= kt($page->text()) ?>
```

### Parse KirbyText for another page

```php
<?= kirbytext('(image: road.jpg)', ['parent' => $page->children()->first()]) ?>
```