Quantcast
Channel: How to avoid empty RSS Feed tags with javascript? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How to avoid empty RSS Feed tags with javascript?

$
0
0

I've got my RSS feed in xml file which I can not edit. The problem is that some of the tags inside are empty or they contain other html tags such as <b></b>.I built my own JavaScript rss feed reader but it's not working unless I will get rid of all empty tags and all html tags. Any ideas?

Example 1 - which doesn't work:

/* ... */<item><pubDate>04 Feb</pubDate><closeDate>11 Feb</closeDate><snappytitle></snappytitle><title><b>Web Developer</b></title><grade>4</grade></item>/* ... */

Example 2 - which does work:

/* ... */<item><pubDate>04 Feb</pubDate><closeDate>11 Feb</closeDate><title>Web Developer</title><grade>4</grade></item>/* ... */

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>