Skip to content

Global Helpers

excerpt()

excerpt() — returns string

Available in: controller, model, mapper, migrator, migration, tabledefinition Category: String Functions

Extracts an excerpt from text that matches the first instance of a given phrase.

NameTypeRequiredDefaultDescription
textstringyesThe text to extract an excerpt from.
phrasestringyesThe phrase to extract.
radiusnumericno100Number of characters to extract surrounding the phrase.
excerptStringstringno...String to replace first and / or last characters with.