求助呀,关于html标签内的换行解决···
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><?php $html = ' </tbody> <input type="hidden" name="prt" value="1"> <input type="image" src="/images/add_t_s_c.png"> '; $content=preg_replace("xxx","",$html); echo $content; ?>
$html = ' <input type="hidden" name="prt" value="1"> <input type="image" src="/images/add_t_s_c.png"> '; $content=preg_replace("/([^>])[\r\n]+/x","$1",$html); echo $content; <div class="clear"> </div>