we have a dashboard built in elm 0.19 (about 64k loc) and now we need to preview some html content (like email previews) and show them in the Dashboard.
We need to inject html somehow in the dashboard, but I think is not possible to alter the DOM adding external HTML code is it?
We can only think on implementing this in the backend and create links to be opened in new tabs to show the content, but it will hurt us a lot in terms of UX.
Do you know a better way to do this? Is it possible at all?
If you are feeling brave enough, you can work around the checks in the Elm runtime by adding a react-style dangerouslySetInnerHTML attribute by monkey patching the HTMLElement class: