I am using a WYSIWYG plugin for Rich Text on Strapi. Adding a media url returns the following string, which I then convert to HTML using dangerouslySetInnerHTML
in React.
<figure class="media">
<oembed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"></oembed>
</figure>
But this does not render the YouTube video in the browser.
I am unsure how to go about getting this to render. Looking at oEmbed it seems in most cases that it converts to an iframe, but not sure how to do that when this comes back as a string from the HTTP request response.