$field->escape()

Escapes all critical characters from the field content to make sure all you get is clean HTML

  • return (string)

Example

<h2><?php echo $page->title()->escape() ?></h2>