php replace html tags

<?php preg_replace(“/<lis(.+?)>(.+?)</li>/is”, “<span>$2</span>”, $string); ?>

Share