您好我使用以下内容来提取li内容,一切正常,但我还想包括和标签以及文本。我需要写什么而不是" $ element2-> plaintext" ???
<tr bgcolor="#FFCCCC"> <!-- HEADLINE TEXT -->
<td class="blue_body">
<ul>
<li><font size="2" face="Arial, Helvetica, sans-serif" color="#000000">As
<b>Bertelsmann</b> continues to haggle with Clive
Calder over how much it must pay to buy his Zomba
independent record company, it plans to consolidate
<b>Zomba</b> under its RCA label. <a href="http://www.nypost.com/business/58425.htm">NYPost</a>
</font>
<li><font size="2" face="Arial, Helvetica, sans-serif" color="#000000">News
Corporation and Telecom Italia are expected to announce
a deal today to acquire the Italian satellite television
operation of <b>Vivendi Universal</b> for $464m in
cash. <a href="http://www.nytimes.com/2002/10/01/business/media/01RUPE.html">NYTimes</a>
</font>
<li><font size="2" face="Arial, Helvetica, sans-serif" color="#000000">Two
years after <b>America Online</b> agreed to acquire
Time Warner, Ted Turner has soured on both the merger
and Stephen Case, its principal architect. <a href="http://nytimes.com/2002/10/01/technology/01AOL.html">NYTimes</a>
</font>
</ul>
</td>
</tr>
这是我正在提取的html
qq{}
答案 0 :(得分:0)
找到了答案
echo $element2->outertext . '<br>';