I have a string with the value:
var string = \"Some plain text
You can use jQuery to do this, using the find method, get the src attribute of the image.
var str = ''; var result = $(str).find('img').eq(0).attr('src'); // get a image src