The string to highlight.
Optional
phrase: string | RegExpThe word or words to highlight.
Optional
length: numberThe number of characters to truncate the string to. The string will be truncated surrounding the first match.
Generated using TypeDoc v0.24.8
The
highlight
helper searches for a word phrase in a string, and wraps matches with the tag.