The string to highlight.
Optionalphrase: string | RegExpThe word or words to highlight.
Optionallength: numberThe number of characters to truncate the string to. The string will be truncated surrounding the first match.
Whether the content is safe to render as HTML or should be escaped (HTML entities encoded).
The
highlighthelper searches for a word phrase in a string, and wraps matches with the tag.