JSFiddle - React, Tailwind, and code Playground
JavaScript
var xml = "<rss> <title> some title </title> <content> <![CDATA[ <div>this tag is ignored<div> who took the cookie in the cookie jar!? ]]> </content></rss>";
console.log($((new DOMParser).parseFromString(xml, "text/xml")).find('content').text());