Skip to content

Kirby 4.5.0

smartypants()

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

smartypants(?string $text = null): string

Parameters

Name Type Default
$text string|null null

Return type

string

Example

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