I'm developing a chat with socketio. Each time a message is sent, I display it using this very simple jquery:
$('#try').prepend(my_message);
with:
<div id='try'></div>
What I would like to do is to find if the message posted contains a link and if so make it clickable. I need to find either http:// and www.
I found several question related, but none of them gave me the solution I'm looking for.
Any idea on how I can accomplish that?