I'm developping an app to analyse DNA sequences. The app calls an external tool in the background that generates outputs as HTML files. The HTML files are stored in a temporary directory before being read and displayed on the app. Currently, I use tags$iframe() to display the content of HTML files. The problem is that HTML files aren't seamlessly embedded in the app, they remain in the iframe which is limited in size. This tends to create multiple vertical scrolling bars (e.g. one for the iframe and another one for the overall page), which I find inconvenient.
Is there a way to embed the content of the HTML file as if it was actually part of the main page? I tried tags$iframe(seamless = NA) but doesn't seem to have any effect.
I presume I need to tweak the embedded HTML file first to remove the <html></html> tag. What's the recommend approach to do it?
Here's a reproducible example using an online HTML file for simplicity purpose:
Hmm that does seem as if it's something in the embedded HTML affecting the rest of it. You can keep just the body of the embedded page like this, but that might break something inside it?