Add links to a text with URLs

03 November 2004   3 comments   Web development

Powered by Fusion×

I've now written a little something that is able to convert a piece of text and make URLs into hyperlinks. Here's an example:

Go to

this becomes:

Go to <a href=""></a>
and <a href=""></a>

Links in email program screenshot

Most of you have probably seen this in the way emails are displayed within their email program. See this screenshot:

Now, what my little program does is that it attempts to accomplish the same effect. The script is written in Python and will be available for download here soon. First I just want you people to help me find any bugs first.

Please try with your text


Bob Marley
Hello? people! visit to my site!
I am found in google this good sites:

Visit! :)
I am creat this sites.
Vcode Infosystems
Best Indian Films offers complete portal about Bollywood, regional film industry of India, top Indian Bollywood actors and actresses, awards, hits of 2006 and comprehensive coverage of Bollywood gossip. This site is a best online resource for everything you ever wanted to know about India's Film Industries, especially Bollywood.

Your email will never ever be published

Related posts

Do you know about Firefox? 01 November 2004
XHTML Transitional versus Strict 05 November 2004
Related by keywords:
createElement('a') with a javascript href 21 November 2005
parametrize_url() adding parameters to URLs 14 January 2005
Google is blind 24 January 2005
Breaking usability principles for usability 10 February 2004
Add links to a text (take II) 10 November 2004
Accessible Pop-Up script 08 June 2004
Quick URLs for some pages 18 January 2004