PHP Remova o envoltório de tags html

$text = "<p><script>example text inside script.<script></p>";
echo strip_tags($text, '<script>');
Clumsy Caribou