I have a Javascript function that receives a string. that string may have URLs in it, with, or without http:// or http/s:
example string:
This is an example string with www.cnn.com and http://microsoft.com"
my purpose is to take that string and inject anchor tags for the URLs such that they are clickable when injected as HTML to an html document.
Is there anything I can use that does this? some Jquery function?