preg_replace('@< (iframe|script|noscript)\b.*?>.*?@si', '', $string);
Removes iframe, script and noscript tags and contents from $string.
Performs an inverted version of strip_tags function.
Toronto based web development
preg_replace('@< (iframe|script|noscript)\b.*?>.*?@si', '', $string);
Removes iframe, script and noscript tags and contents from $string.
Performs an inverted version of strip_tags function.