Keep iframes when converting HTML

Hi, I have a problem using datocms-html-to-structured-text library. I pass the html document to the htmlToStructuredText function, but it removes the iframes tags. How can I keep them?

A guess: You might need to create a new block type to deal with them, and then make a custom block handler to pass to the function? Not sure if this will work, but it’s a starting point:

I was having the same issue, so I added block with a text field (takes iframe code).

Then in the dast render function options I checked for the iframe block with the renderBlock function and returned it.

But was getting escaped iframe code in the returned html.

So then used html-escaper to convert the escaped html.