Best Practice: Open URL stored in text file

Best Practice: Open URL stored in text file

BY 05 Jun 2013 Web Application Development

Good morning everyone,

I was wondering what would be the best practice to handle this scenario.  We bring a text file into our app that contains some urls.  Think of it as an Email where people send you a few links to check. How can we code things so that the url’s when clicked open in a new window (to not crash the app)?

–> Should we do a regex on the text file?
–> Is there a higher level API/Call that we can make so that by default URL’s open in a new window (this would be more efficient)

Merci,

Gregory

Written by