remove script tags from html in php code example
Example: php remove script tag from string
$html = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $html);
$html = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $html);