i can able to extract the first img src link with the below code snipper.
let doc = JSON.parse(response.body);
let myhtml= JSON.stringify(doc.message);
const srcs = findBetween(myhtml, ‘<img src=’’, “’”);
But there are several links on the same message (myhtml) with the same right and left boundaries. Is there is away to extract all the img links. from the myhtml.
let doc = JSON.parse(res.body);
let myhtml= JSON.stringify(doc.message);
let out=parseHTML(myhtml);
out
.find('img')
.toArray()
.forEach(function (item) {
let temp= item.attr('src').toString();
});