URL: https://www.peterbe.com/plog/add-hrefs/test.html

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 www.abc.com
and foo@bar.com

this becomes:


Go to <a href="http://www.abc.com">www.abc.com</a>
and <a href="mailto:foo@bar.com">foo@bar.com</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

Comments

Bob Marley

Hello? people! visit to my site!

peter

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.

Previous:
Do you know about Firefox? November 1, 2004
Next:
XHTML Transitional versus Strict November 5, 2004 Web development
Related by category:
Fastest way to find out if a file exists in S3 (with boto3) June 16, 2017 Web development
Be very careful with your add_header in Nginx! You might make your site insecure February 11, 2018 Web development
<datalist> looks great on mobile devices August 28, 2020 Web development
How to have default/initial values in a Django form that is bound and rendered January 10, 2020 Web development
Related by keyword:
createElement('a') with a javascript href November 21, 2005 Web development
parametrize_url() adding parameters to URLs January 14, 2005 Python
Google is blind January 24, 2005 Web development
Add links to a text (take II) November 10, 2004 Python