Easiest way to convert a URL to a hyperlink in a C# string?

Posted by nbirkes on Stack Overflow See other posts from Stack Overflow or by nbirkes
Published on 2008-08-28T15:49:32Z Indexed on 2010/04/18 7:33 UTC
Read the original article Hit count: 259

Filed under:
|
|
|

I am consuming the Twitter API and want to convert all URLs to hyperlinks.

What is the most effective way you've come up with to do this?

from

string myString = "This is my tweet check it out http://tinyurl.com/blah";

to

This is my tweet check it out <a href="http://tinyurl.com/blah">http://tinyurl.com/>blah</a>

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex