extracting tags as well as text PHP Simple HTML DOM Parser Manual
<p>Hi I am using the following to extract the li content, everything works fine but I would like to also include the  and  tags as well as the text. what do i need to write instead of "$element2->plaintext"???</p>

<pre><code> // Create DOM from URL or file
    $html = file_get_html('2002-10-01.html');

    // Find all images 
    foreach($html-&gt;find('table tr[bgcolor=#FFCCCC]') as $element) {
           foreach($element-&gt;find('li') as $element2) { 

///just plain text
            echo $element2-&gt;plaintext . '&lt;br&gt;'; 

///plain text and html elements

echo $element2-&gt;html. '&lt;br&gt;';

           }

           }
</code></pre>

<p>here is the html i am extracting</p>

<pre><code>&lt;tr bgcolor="#FFCCCC"&gt; &lt;!-- HEADLINE TEXT --&gt; 
                      &lt;td class="blue_body"&gt; 
                        &lt;ul&gt;
                          &lt;li&gt;&lt;font size="2" face="Arial, Helvetica, sans-serif" color="#000000"&gt;As 
                            &lt;b&gt;Bertelsmann&lt;/b&gt; continues to haggle with Clive 
                            Calder over how much it must pay to buy his Zomba 
                            independent record company, it plans to consolidate 
                            &lt;b&gt;Zomba&lt;/b&gt; under its RCA label. &lt;a href="http://www.nypost.com/business/58425.htm"&gt;NYPost&lt;/a&gt; 
                            &lt;/font&gt;
                          &lt;li&gt;&lt;font size="2" face="Arial, Helvetica, sans-serif" color="#000000"&gt;News 
                            Corporation and Telecom Italia are expected to announce 
                            a deal today to acquire the Italian satellite television 
                            operation of &lt;b&gt;Vivendi Universal&lt;/b&gt; for $464m in 
                            cash. &lt;a href="http://www.nytimes.com/2002/10/01/business/media/01RUPE.html"&gt;NYTimes&lt;/a&gt; 
                            &lt;/font&gt;
                          &lt;li&gt;&lt;font size="2" face="Arial, Helvetica, sans-serif" color="#000000"&gt;Two 
                            years after &lt;b&gt;America Online&lt;/b&gt; agreed to acquire 
                            Time Warner, Ted Turner has soured on both the merger 
                            and Stephen Case, its principal architect. &lt;a href="http://nytimes.com/2002/10/01/technology/01AOL.html"&gt;NYTimes&lt;/a&gt; 
                            &lt;/font&gt; 
                        &lt;/ul&gt;
                      &lt;/td&gt;
                    &lt;/tr&gt;
</code></pre>