Skip to content

Instantly share code, notes, and snippets.

@yann-yinn
Created September 30, 2019 09:31
Show Gist options
  • Save yann-yinn/79d17c5556d4d32cb6eecbb07eea6d2c to your computer and use it in GitHub Desktop.
Save yann-yinn/79d17c5556d4d32cb6eecbb07eea6d2c to your computer and use it in GitHub Desktop.
iframely render text with oembed tags in a theme
document.querySelectorAll("oembed[url]").forEach(element => {
iframely.load(element, element.attributes.url.value);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment