Skip to content

Kirby 6.0.0

$field->esc()

$field->esc(string $context = 'html'): Field

Parameters

Name Type Default
$context string 'html'

Return type

Kirby\Content\Field

This method does not modify the existing $field object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Content\Field