This post contains useful jquery plugins and javascript tip how to replace text URL to HTML links. I had tried these plug-ins at labs.askgif. I hope it's very useful for your social media web projects. Thanks!
Javascript Text to Link
<script type="text/javascript">
function text_to_link(text)
{
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
return text.replace(exp,"<a href='$1' target='_blank'>$1</a>");
}
var linkdata=text_to_link("askgif programming blog http://askgif.com/blog/");
document.write(linkdata);
</script>


