I am reading in an rss feed and the description node of the feed contains html.
article.description = items[n].querySelector("description").textContent;
This is working fine. What I’d like to do is grab the first image src attribute value from the description if one exists.
This involve parsing an html block. I have tried adding jQuery (1.9) locally and it doesn’t work. I’ve tried creating a DOMParser object but it appears this is not accessible.
Any clues how I might go about doing this? I’ve seen a few other similar questions without any real solution.
Summary: need to parse images out of an html string in JavaScript for Windows 8 metro app
How about this…