求助呀,关于html标签内的换行解决···
<?php$html = '</tbody></table><input type="hidden" name="prt" value="1" /> <input type="image" src="/images/add_t_s_c.png" /></form>';$content=preg_replace("xxx","",$html);echo $content;?> $html = '</tbody></table><input type="hidden" name="prt" value="1" /> <input type="image" src="/images/add_t_s_c.png" /></form>';$content=preg_replace("/([^>])[\r\n]+/x","$1",$html);echo $content;