$field->html()
Converts the field content to valid HTML
$field->html(): Field
Return type
This method does not modify the existing $field object but returns a new object with the changes applied. Learn more →
Aliases
You can use the following aliases for this field method in your template:
$field->h(…)
Examples
<h1><?= $page->title()->html() ?></h1>