首页 > 技术文章 > php preg_replace去除html xml 注释
8000cabbage 2018-01-08 11:08 原文
php preg_replace去除html xml 注释
//不确定是否最优 $content = preg_replace('/<!--((?!-->).)*-->/s', '', $content);