Skip to content

Kirby 4.2.0

$field->xml()

Converts the field content to valid XML

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

Return type

Kirby\Content\Field

Aliases

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

  • $field->x(…)

Example

<?= $page->title()->xml() ?>