smartypants()
Enhances the given string with smartypants. Shortcut for $kirby->smartypants($text)
smartypants(string|null $text = null): string
Parameters
Name | Type | Default |
---|---|---|
$text | string ornull |
null
|
Return type
string
Examples
<?= smartypants($page->title()) ?>