$fieldMethods->excerpt()
Creates an excerpt of the field value without html or any other formatting.
$fieldMethods->excerpt(int $chars = 0, bool $strip = true, string $rep = ' …'): FieldMethods
Parameters
| Name | Type | Default |
|---|---|---|
| $chars | int |
0
|
| $strip | bool |
true
|
| $rep | string |
' …'
|
Return type
Kirby\Content\FieldMethods
This method does not modify the existing $fieldmethods object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Content\FieldMethods