P
P
prolina2019-11-22 11:50:11
JavaScript
prolina, 2019-11-22 11:50:11

Get oembed tag from string containing tags?

There is the following line :

<figure class="media"><oembed url="https://www.instagram.com/p/BmMZgokAGGQ/?taken-by=nasa"></oembed></figure><p>&nbsp;</p>

From it you need to get
<oembed url="https://www.instagram.com/p/BmMZgokAGGQ/?taken-by=nasa"></oembed>
but with such a type, so that later you can make appendChild into it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stockholm Syndrome, 2019-11-22
@StockholmSyndrome

document.querySelector('oembed');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question