Skip to content

Documentation


Documentation / @blazetrails/actionpack / ActionView / highlight

Function: highlight() ​

highlight(this, text, phrases, options?, block?): SafeBuffer

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

Parameters ​

ParameterType
thisTagHelperHost
textstring | SafeBuffer | null | undefined
phrasesstring | RegExp | (string | RegExp)[] | null | undefined
options?HighlightOptions
block?(match) => string

Returns ​

SafeBuffer