/// <summary> /// Expands links into HTML hyperlinks inside of text or HTML. /// </summary> /// <param name="text">The text to expand</param> /// <param name="target">Target frame where links are displayed</param> /// <param name="parseFormattedLinks">Allows parsing of links in the following format [text|www.site.com]</param> /// <returns></returns> public static string ExpandUrls(string text, string target, bool parseFormattedLinks) { if (target == null) { target = string.Empty; } ExpandUrlsParser Parser = new ExpandUrlsParser(); Parser.Target = target; Parser.ParseFormattedLinks = parseFormattedLinks; return(Parser.ExpandUrls(text)); }
/// <summary> /// Expands links into HTML hyperlinks inside of text or HTML. /// </summary> /// <param name="text">The text to expand</param> /// <param name="target">Target frame where links are displayed</param> /// <param name="parseFormattedLinks">Allows parsing of links in the following format [text|www.site.com]</param> /// <returns></returns> public static string ExpandUrls(string text, string target, bool parseFormattedLinks) { if (target == null) target = string.Empty; ExpandUrlsParser Parser = new ExpandUrlsParser(); Parser.Target = target; Parser.ParseFormattedLinks = parseFormattedLinks; return Parser.ExpandUrls(text); }