The excerpt()
method removes all formatting. If you need formatted text, you could use str::excerpt
with $htmlremove set to false, or str::short
, instead:
<?php echo str::excerpt($page->text()->kirbytext(), 120, false) ?>
The excerpt()
method removes all formatting. If you need formatted text, you could use str::excerpt
with $htmlremove set to false, or str::short
, instead:
<?php echo str::excerpt($page->text()->kirbytext(), 120, false) ?>