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>"); }