Skip to content

Instantly share code, notes, and snippets.

@kesla
Last active February 9, 2016 22:48
Show Gist options
  • Save kesla/a21035a51421e4b48a7c to your computer and use it in GitHub Desktop.
Save kesla/a21035a51421e4b48a7c to your computer and use it in GitHub Desktop.
import toArticleJson from ‘html-to-article-json’;
const embed1 = toArticleJson(
'<iframe src=”https://www.youtube.com/embed/pDVmldTurqk"></iframe>'
);
const embed2 = toArticleJson(
'<iframe src=”//cdn.embedly.com/widgets/media.html?src=http%3A%2F%2Fwww.youtube.com%2Fembed%2F3rS6mZUo3fg%3Ffeature%3Doembed"></iframe>'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment