I want to render an iframe given a String input. For example, I have some string of HTML like this:
str = "<!DOCTYPE html><html><head></head><body>HELLO ELM</body></html>"
In JS I would do this by setting innerHtml on the iframe.
For now, I'm trying to just get the iframe to render anything at all, but haven't had success. I'm trying this sort of thing:
iframe
[]
[ body [] [ div [][text "hi"], div [][text "hi"] ] ]
Once I get it working with a list of HTML nodes, I'll move onto making it work with a string. What I'm looking for would be some kind of stringToHtml: String -> List Html method.
Any help or suggestions for getting started with iframes in elm?