HtmlExtensions.GetMatchingText Method

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

GetMatchingText(String, Int32, IList)

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

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

Parameters

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

Returns

System.String

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