Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to insert separately styled HTML e-mail to heavily styled page

Use iframe like this!

<iframe id="unstyled-text" sandbox="allow-scripts allow-popups allow-same-origin" srcdoc="<?= htmlspecialchars('<head><base target="_blank"></head><body>' . $html . '</body>') ?>"></iframe>
        // hack for IE and browsers without srcdoc support
        var $u = $('#unstyled-text');
        var $body = $u.contents().find('body');
        if ($body.html() == '')

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!

I appreciate you providing this valuable information. Your website is quite remarkable. The degree of information on your website is incredible. This is a really informative piece, and I'd like to read more of your work. In addition, if you have any free time, I'd like to play basketball stars. I recently found out about this fantastic game.

Users browsing this thread: 1 Guest(s)