I search possible ways to display other HTML Code inside HTML Website, than doesn't conflict layout of the website.
I found follwing ways on the net:
- IFrame (insecure, dangerous) Helpful Link
- Google Caja (Iframe, Server Side needed) Helpful Link
- Shadow DOM (No browser support) Helpful Link
- JQuery html -> dom insert to div (Search solution on Angular2) Helpful Link
What I need
- Separate Layout Inside HTML and Outside HTML
- Secure mechanism to prevent attacks imported code (html, js, css)
- Option to display HTML or HTML E-Mails
- Allow execution of css and js without changing the source code of imported html
- At best a solution that working on Angular2(v4,5)
- Same thing what webmailer (gmail, yahoo) are using already, but I didn't figure it out, what technic used.
For every tip or method to get to my goal, thanks in advance