I'm creating a jQuery Mobile app that parses an RSS feed and dynamically inputs the entries into the DOM. I'm using the .contentSnippet
feature to grab the first sentence or two from the <description>...</description>
and I'd like to just have the content between <em>...</em>
. How do I select this content using Javascript and RegEx? Here is what the RSS looks like that I'm working with.
<description><![CDATA[<font size="2"><em>American Banker Magazine (03/13) Fest, Glen</em>...</description>
I'm bringing the feed in as a JSON object.