Method InsertBoldTags
InsertBoldTags(string, string, StringComparison)
Inserts html bold tags before and after substring.
public static string InsertBoldTags(string s, string textToFind, StringComparison comparison = StringComparison.CurrentCultureIgnoreCase)
Parameters
s
stringThe text which will be processed.
textToFind
stringThe text around which html bold tags will be inserted.
comparison
StringComparisonStringComparison used to specify how text will be compared.
Returns
- string
Changed text with html bold tags around found substring.