I have a problem with iframe. I added HTML code (string - I get that code from DB) in the <body>
of iframe but I can't see that code as HTML, its just a string.
document.getElementById("iframe_with_content").ready(function() {
(document.getElementById("iframe_with_content").contentWindow.document).write("<%= post.text %>");
(document.getElementById("iframe_with_content").contentWindow.document).close();
});