I have a JSON request result for a blogger post.
// API callback
posts(
{
"version": "1.0",
"encoding": "UTF-8",
"entry":
{
"title":
{
"type": "text",
"$t": "Vimeo Embed Video Post"
},
"content":
{
"type": "html",
"$t": "<span data-format=\"video-post\"><\/span><iframe allowfullscreen=\"\" frameborder=\"0\" height=\"281\" mozallowfullscreen=\"\" src=\"\/\/player.vimeo.com\/video\/107469289\" webkitallowfullscreen=\"\" width=\"500\"><\/iframe> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod<br \/>tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,<br \/>quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo<br \/>consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse<br \/>cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non<br \/>proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
},
}
});
Inside the "content" you can see there is a <span data-format="video-post"></span>. I want to get value from data-format atrribute with javascript.
postsfunction?<span data-format="..."></span>, and yes it is inside thepostsfunction.