【发布时间】:2014-03-07 19:38:26
【问题描述】:
$in = '(<(/?(?:strong|p|em|a|ol|ul|li|img|iframe)\b.*?)>)ie';
$contenu = preg_replace($in, "'<'.html_entity_decode('$1',ENT_QUOTES,'UTF-8').'>'", $contenu);
【问题讨论】:
-
如何用 preg_replace_callback() 替换代码?
标签: php regex preg-replace preg-replace-callback