Skip to content

Kirby 6.0.0

$field->smartypants()

Applies SmartyPants to the field

$field->smartypants(): Field

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 →

Aliases

You can use the following aliases for this field method in your template:

  • $field->sp(…)

Examples

<?= $page->text()->smartypants() ?>

See also Configuring SmartyPants