<?php $content = get_the_content(); $content = preg_replace("/<img[^>]+>/i", "(image) ", $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?>