Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionView / excerpt

Function: excerpt() ​

excerpt(text, phrase, options?): string | null

Defined in: packages/actionview/dist/helpers/text-helper.d.ts:31

Parameters ​

ParameterType
textstring | null | undefined
phrasestring | RegExp | null | undefined
options?ExcerptOptions

Returns ​

string | null