Table of Contents

Method InsertBoldTags

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 string

The text which will be processed.

textToFind string

The text around which html bold tags will be inserted.

comparison StringComparison

StringComparison used to specify how text will be compared.

Returns

string

Changed text with html bold tags around found substring.