<?php $str = 'before <cite>Quote from <a href="/page.php" class="link">Testuser ยป 29.09.2016 15:08</a>:</cite> after'; $str = preg_replace_callback("/<cite>.*<\/cite>/i", function($matches){ return strip_tags($matches[0], "<cite>"); }, $str); echo $str;
You have javascript disabled. You will not be able to edit any code.