Fiddle
var data = {
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/FQpUOimNvXA?feature=oembed\" frameborder=\"0\" allowfullscreen></iframe>"
}
console.log(data.html);
var str = data.html;
var word = str.split(" ");
var word1 = word[3].split('"');
console.log(word1[1]);
I split a couple of times when I ended up with https://www.youtube.com/embed/FQpUOimNvXA?feature=oembed
source
share