Skip to main content

Function: highlightSearchTerms()

highlightSearchTerms(html, terms): string

Defined in: Services/VerseFormatter.ts:232

Apply search term highlighting to HTML text. Wraps matched terms in tags, using word boundaries to avoid partial-word matches.

Parameters

html

string

terms

string[]

Returns

string