Skip to content

Kirby 5.1.1

smartypants()

Enhances the given string with smartypants. Shortcut for $kirby->smartypants($text)

smartypants(string|null $text = null): string

Parameters

Name Type Default
$text stringornull null

Return type

string

Examples

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