像上面的例子,标签里出现了换行,如何通过正则表达式去把换行给去掉呢?我写了很久,都没办法去掉换行。求高人帮忙~~~~">
输入banner图图片脚本导航/分类

呀,关于html标签内的换行解决···

求助呀,关于html标签内的换行解决···
PHP code


 

';

$content=preg_replace("xxx","",$html);
echo $content;
?> 


像上面的例子,标签里出现了换行,如何通过正则表达式去把换行给去掉呢?
我写了很久,都没办法去掉换行。求高人帮忙~~~~~

------解决方案--------------------
PHP code
$html = '


 

';

$content=preg_replace("/([^>])[\r\n]+/x","$1",$html);
echo $content;