RadioDld.RssServer.DescriptionHTML C# (CSharp) Method

DescriptionHTML() private method

private DescriptionHTML ( string text ) : string
text string
return string
        private string DescriptionHTML(string text)
        {
            string html = HttpUtility.HtmlEncode(text).Replace("\n", "<br>");

            return Regex.Replace(html, @"(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)", "<a href=\"$1\">$1</a>");
        }