如何对html代码进行格式化,得到我需要的内容?
例如这段代码:
<TABLE width="100%" border="0" cellPadding="0" cellSpacing="0" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<TR>
<TD height="28">
<font class="h6">高级客户经理
(2人)
</font>
<br>青牛(北京)技术有限公司<A href="#22200200880523">(查看公司信息)</A><br><img src="images/none.gif" width="1" height="3" border="0"></TD>
</TR>
<TR>
<TD>
<TABLE width="98%" border="0" cellPadding="0" cellSpacing="0" bgcolor="#ffffff">
<tr>
<td colspan="3">
<img src="images/none.gif" width="1" height="10" border="0">
</td>
</tr>
<TR>
<TD width="34%">
<font class="h8">
<strong>工作性质:</strong>全职</font>
</TD>
<TD width="34%">
<font class="h8">
<strong>工作地点:</strong>
<INPUT TYPE="hidden" NAME="job_loc" VALUE="杭州">杭州 </font>
</TD>
我希望得到 高级客户经理(2人)、工作性质、工作地点等信息。
望有经验的给个建议。
比较好的方法,欢迎跟贴。