如果是你的标签是符合xml的标准,哪用dom来操作很容易.
如果不行的话,用正则也可以.

解决方案 »

  1.   

    <span class\="STYLE20">(.*)<\/span>
      

  2.   

    $str='<td> <table width="260" style="margin-left:4px;" height="65" border="0" cellpadding="0" cellspacing="0"> <tr> <td>
    <span class="STYLE20">【李宁】1HSC254-3城市纪念T恤-北京祥云A0454300 </span> </td> </tr> </table> <table width="260" style="margin-left:4px;" height="36" border="0" cellpadding="0" cellspacing="0">';
    echo strip_tags($str);
    直接用strip_tags函数