xss_clean($str, $tool); } /** * Remove image tags from a string. * * @param string string to sanitize * @return string */ public static function strip_image_tags($str) { return preg_replace('#\s]*)["\']?[^>]*)?>#is', '$1', $str); } } // End security