Skip to content

Kirby 6.0.0

$fieldMethods->esc()

Alias for Kirby\Content\FieldMethods::escape()

$fieldMethods->esc(string $context = 'html'): FieldMethods

Parameters

Name Type Default
$context string 'html'

Return type

Kirby\Content\FieldMethods

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

Parent class

Kirby\Content\FieldMethods