PHP php replace html tags June 19, 2013 Pramod T P <?php preg_replace(“/<lis(.+?)>(.+?)</li>/is”, “<span>$2</span>”, $string); ?>