I am displaying some rss content from a vbulletin feed. The retued xml is structured like so:
"entries":[{"title":"Article Title","link":"http://www.foo.com","author":"","publishedDate":"","contentSnippet":"Forum: forum titlenPosted By: somebodynPost Time: 05-29-2016 at 04:27 PM","content":"Forum: forumnPosted By: somebodynPost Time: 05-29-2016 at 04:27 PM","categories":[]},
I need to grab the Post Time from the 'contentSnippet'. There is varying length in the other two objects(?) parts Forum, Posted By so I can't slice from the begiing, and going from the end isn't working. How can I just locate 'Post Time' without using character based slicing as such:
for( var i=0; i<entries.length; i++){
html += '<li><a href="'+ entries[i].link +'" target="_blank">'+ entries[i].title +'</a><span class="d-block date">' +entries[i].contentSnippet.slice(0, -1);+ '</li>';
};
