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()) ?>