How can I detect URL in text area that doesn't include http://
? Here is an a example for a input:
Hi bro! Look at my new website: www.example.com. I leard to build websites from http://another.example.net and from example.net.
Is there a way to convert it to this code?:
Hi bro! Look at my new website: <a href="http://www.example.com">www.example.com</a>.
I leard to build websites from <a href="http://another.example.com">http://another.example.net</a>
and from <a href="http://example.net">example.net</a>.
As you can see, the code detects if there are a URL even if it doesn't starts with http://
or www
, and adds to the a
tag the http://
.