Quantcast
Channel: get image out of CDATA and description tag with jquery - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

get 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
Browsing latest articles
Browse All 3 View Live




Latest Images