How to make support the HTML tag “oembed” by the wordpress editor

I want to add the following html code to my wordpress editor but the youtube video is not embeded. The url disappear.

<figure><oembed url=""></oembed></figure>

How to make the wordpress editor accept the “oembed” html tag ?


You can use the native WordPress Embed Block:

And in general you can just paste the link itself (URL only) inside the WordPress editor and it will automatically generate the embed for you.