The original string to render.
Optionalranges: MatchIndex[]An array of {start, end} objects representing matches.
Optional callback to define how the matched text is wrapped. Defaults to a tag.
A Lit TemplateResult, or the original string if no ranges exist.
Slices a string and wraps matched search indices in a Lit TemplateResult.