php lepaskan bungkus tag html

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