HtmlExtensions.Emphasize Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Emphasize(String, IList)

Emphasizes (wraps in <em></em>) all matching search terms in the input text.

public static string Emphasize(this string input, IList terms)

Parameters

input
System.String
terms
System.Collections.Generic.IList{System.String}

Returns

System.String

A string with all matching search termns highlighted.