如果标签在标签内,我如何修改以下正则表达式以不执行(分别表示)<img>
<script>
<script language="...">
<script*>
代码:
function seo_friendly_images($content) {
return preg_replace_callback('/<img[^>]+/', 'seo_friendly_images_process', $content);
}
add_filter('the_content', 'seo_friendly_images', 100);