Answer by Rohan Kumar for get image out of CDATA and description tag with jquery
You have to escape [ and ] like,img = img.replace("<!\[CDATA\[", "").replace("\]\]>", "");
View ArticleAnswer by Riccardo Canella for get image out of CDATA and description tag...
have you try to:var img = $(element).find("description").text(); img = img.replace("<![CDATA[", "").replace("]]>", ""); console.log(img); $("#img").append(img); // <-- use only the var ingto...
View Articleget image out of CDATA and description tag with jquery
How do i get a image out of a CDATA and description tag?Here is the XML code:<description><![CDATA[<img src='http://www.autowereld.com/imagesDB/100/311151018460_.jpg' border='0'...
View Article
More Pages to Explore .....