title: How to remove HTML wrapper from YouTube video embeds in Gutenberg on Wordpress
body: <p>in short: I had some custom post types created with the Classic Editor plugin and now I have to convert them to Gutenberg, but it keeps screwing up my URLs.</p>
  <p>The CPTs are basically slides inside a slider, and each one of them contained a YouTube URL as the post content (or <code>the_content</code>), which was printed as the href attribute of the play icon element with <code>echo get_the_content</code> and it worked fine - the output of <code>echo get_the_content</code> was this:</p>
  <p><code>https://youtu.be/BFxGJM_sFUg</code>.</p>
  <p>However, upon converting the CPT to Gutenberg blocks, the output of <code>get_the_content</code> is:</p>
  <pre><code>&lt;figure class=&quot;wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio&quot;&gt;&lt;div class=&quot;wp-block-embed__wrapper&quot;&gt;
  https://youtu.be/BFxGJM_sFUg
  &lt;/div&gt;&lt;/figure&gt;
  &lt;!-- /wp:core-embed/youtube --&gt;
  </code></pre>
  <p>which completely messes up the layout because of the extra HTML, so my question is - is there any way to prevent Gutenberg from adding it? I've spent hours Googleing it, found some solution that were kinda on the right track (although the issue they cover wasn't the same), but none of them worked for me. :/</p>
  <p>Thanks!</p>