我有一个要解析的 html 字符串。结果字符串
<table id="Table1">
<tr>
<td width="50%">
Result: <span style="font-weight:bold; color:GREEN;"></span>
</td>
<td width="50%">
ID: <span style="font-weight:bold;">790043</span>
</td>
</table>
<table id="Table2">
<tr>
<td class="name">
Status:
</td>
<td class="value">
None
</td>
</tr>
</table>
<br /><br />
<a href="#" onclick="$('#vvvv').toggle();return false;" /></a>
<br />
<div id="pp1" style="displa
</div>
我将如何仅提取/子串两个表格标签中的文本。所以我的 html 字符串将是
<table id="Table1">
<tr>
<td width="50%">
Result: <span style="font-weight:bold; color:GREEN;"></span>
</td>
<td width="50%">
ID: <span style="font-weight:bold;">790043</span>
</td>
</table>
<table id="Table2">
<tr>
<td class="name">
Status:
</td>
<td class="value">
None
</td>
</tr>
</table>
请建议
感谢你