Possible Duplicate:
How to replace plain URLs with links?
So I've got a page with a bunch of URLs and no links. The page is constantly pulling in new information, so I can't add the tags myself. Where could I find a fast, lightweight, JavaScript snippet or jQuery plugin to linkify these URLs?
Turn http://blahblah.com/
into <a href="http://blahblah.com/">http://blahblah.com/</a>
.html()and replace it with the linkified version..replaceURLWithHTMLLinks($('li').text())(regarding the first solution here: stackoverflow.com/questions/37684/…)$('li').html(replaceURLWithHTMLLinks($('li').html()))or, if you have more than oneli,$('li').each(function() { $(this).html(replaceURLWithHTMLLinks($(this).html())); });