摘要: 1.去除html标记function Text2Html($txt){ $txt = str_replace(""," ",$txt); $txt = str_replace("<","&lt;",$txt); $txt = str_replace(">","&gt;",$txt); $txt = preg_replace("/[\r\n]{1,}/isU","<br/>\r\n",$txt); 阅读全文
posted @ 2012-12-24 13:54 hylaz 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1.采集表格中的内容为数组function get_td_array($table) { $table = preg_replace("']*?>'si","",$table); $table = preg_replace("']*?>'si","",$table); $table = pre... 阅读全文
posted @ 2012-12-24 11:35 hylaz 阅读(309) 评论(0) 推荐(0) 编辑