$field->escape()

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

  • return (string)

Example

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