When Web page is displayed in a div, Error: Unable to modify the parent container element before the child element is closed
<p>A url is being displayed in a div as shown below</p>

<pre><code>    &lt;div id="ipage"&gt;
&lt;? $url = "http://www.yahoo.com"; 
        $file1 = fopen($url, "r");
        $content = file_get_contents($url); 
         echo $content;
?&gt;
    &lt;/div&gt;
</code></pre>

<p>And I receive this error
Webpage error details</p>

<p>Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)</p>

<p>Bright idea to solve this.</p>

<p>Thanks
Jean</p>

<p>[EDIT]</p>

<p>I am going to use jQuery here.  Is there anyway to hide javascript errors, so the rest of the code excute, without flaws.</p>
