I've working on an app, that takes data from a RSS feed (xml), this means I don't have control of what comes with it, I'm using the Google Api for feeds to retrieve the data in JSON format, and I'm using jQuery (feeder.js) to generate the resulting html with the info.
The resulting html goes inside my PhoneGap project, and everything works just fine.
The only problem now is that inside the info retrieved from the RSS, sometimes theres some links going anywhere (eg: facebook, twitter, personal sites, newspapers, etc).
The feeder provides all the content inside an element, containing the titles, paragraphs, links and such.
What I need now, is a way to target this links inside the articles, and call the window.open event, or whatever works to open the link in an external browser.
The html structure generated by feeder.js goes like this:
<article>
<h2>Title</h2>
<p>Content</p>
<a href="http://facebook.com">This link here!</a>
<p>More content</p>
</article>
As you can see, theres no class or id, to target a single element, as they appear as pointed here.
I'm working with the latest versions of Android SDK and PhoneGap to this date.
Basically what I need to do, is to target the element < a > within the < article > and give them the new browser window event.
Best regards to anyone who takes a minute to help me, cheers!