求助呀,关于html标签内的换行解决···
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
--><?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 = '
<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>
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号