Does anyone know of a script that can select all text references to URLs and automatically replace them with anchor tags pointing to those locations?
For example: http://www.google.com would automatically turn into <a href='http://www.google.com'>http://www.google.com</a>
Note: I am wanting this because I don’t want to go through all my content and wrap them with anchor tags.
JQuery isn’t going to help you a whole lot here as you’re not really concerned with DOM traversal/manipulation (other than creating the anchor tag). If all your URLs were in <p class=’url’> tags then perhaps.
A vanilla JavaScript solution is probably what you want, and as fate would have it, this guy should have you covered.