Skip to content

Kirby 5.1.1

$field->smartypants()

Applies SmartyPants to the field

$field->smartypants(): Kirby\Content\Field

Return type

Kirby\Content\Field

This method modifies the existing $field object it is applied to and returns it again.

Aliases

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

  • $field->sp(…)

Examples

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

See also Configuring SmartyPants