• The highlight helper searches for a word phrase in a string, and wraps matches with the tag.

    Parameters

    • string: string

      The string to highlight.

    • Optional phrase: string | RegExp

      The word or words to highlight.

    • Optional length: number

      The number of characters to truncate the string to. The string will be truncated surrounding the first match.

    Returns Mithril.Vnode<any, any> | string

Generated using TypeDoc v0.24.8