PHP去掉html中的空行、空白函数
2012-09-24 11:29
435 查看
function DeleteHtml($str){ $str = trim($str); $str = ereg_replace("\t","",$str); $str = ereg_replace("\r\n","",$str); $str = ereg_replace("\r","",$str); $str = ereg_replace("\n","",$str); return trim($str); }
相关文章推荐
- PHP去掉html中的空行、空白函数
- php去除、去掉html标签函数strip_tags
- php转义和去掉html、php标签函数
- php引入公用部分html出现了一行空白(原创)
- php不同版本htmlspecialchars函数过滤GBK编码时中文为空
- Asp去掉所有Html格式的函数
- asp去掉html中的table代码函数
- php htmlspecialchars()、shtmlspecialchars() 函数
- PHP 把字符转换为 HTML 实体 - htmlentities() 函数
- PHP 过滤html标签的函数
- PHP之stripslashes()函数和htmlspecialchars()函数
- php去除html代码中的标签,写空白字符
- 巧用php中的array_filter()函数去掉多维空值的代码分享
- PHP htmlspecialchars() 函数
- nginx去掉index.html改为index.php
- php压缩HTML函数轻松实现压缩html/js/Css及注意事项
- 怎么去掉织梦网站首页带的index.html/index.php
- PHP去掉特定html标签的正则表达式
- 5种方法去掉HTML中Inline-Block元素之间的空白
- PHP压缩html的函数