PHP代码:去除EM标签,保留内容
将下面这段代码,改为只删除em>和/em>和和这四个标签,不删除标签中间的内容
$ai_article_html = preg_replace('/<(/)?em>/', '', $ai_article_html);
This code uses regular expression to remove only the '' and '' tags without removing the content between them.
原文地址: https://www.cveoy.top/t/topic/qrNm 著作权归作者所有。请勿转载和采集!