C# Class TextHelper.Highlighter

Afficher le fichier Open project: tylermercier/TextHelper

Méthodes publiques

Méthode Description
Highlight ( this text, IList phrases, string highlighter ) : string

Highlight(this string, string, string)

Highlight ( this text, string phrase, string highlighter ) : string

Highlights one or more phrases everywhere in text by inserting it into a highlighter string.

Method Details

Highlight() public static méthode

Highlight(this string, string, string)
public static Highlight ( this text, IList phrases, string highlighter ) : string
text this
phrases IList The list of phrases to highlight
highlighter string
Résultat string

Highlight() public static méthode

Highlights one or more phrases everywhere in text by inserting it into a highlighter string.
public static Highlight ( this text, string phrase, string highlighter ) : string
text this
phrase string The phrase to highlight
highlighter string A string formatter where {0} will be replaced by the phrase (defaults to <strong class="highlighted">{0}</strong>)
Résultat string