C# Class TextHelper.AutoLinker

Datei anzeigen Open project: tylermercier/TextHelper

Public Methods

Method Description
AutoLink ( this text, string>.IDictionary htmlAttributes = null, string>.Func textReplacer = null, LinkMode linkMode = LinkMode.All ) : string

Turns all URLs and e-mail addresses into clickable links.

Method Details

AutoLink() public static method

Turns all URLs and e-mail addresses into clickable links.
public static AutoLink ( this text, string>.IDictionary htmlAttributes = null, string>.Func textReplacer = null, LinkMode linkMode = LinkMode.All ) : string
text this
htmlAttributes string>.IDictionary Adds HTML attributes to the links.
textReplacer string>.Func Lambda expression to change what text is shown inside the link tag.
linkMode LinkMode Option to limit what should be linked.
return string