$field->xml()

Converts the field content to valid XML

  • return (string)

Example

<?php echo $page->title()->xml() ?>