HtmlExtensions.GetMatchingText Method

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

GetMatchingText(string, int, IList)

Gets a relevant section of text related to the search terms.

public static string GetMatchingText(this string input, int length, IList<string> terms)

Parameters

input
string

Text to examine.

length
int

Number of characters to return.

terms
System.Collections.Generic.IList

Search terms to look for.

Returns

string

Returns the relevant text with the found query words marked as bold.