$field->xml()

Converts the field content to valid XML

  • return (string)

Example

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