static function sanitizeHtml($txt) { // Remove active content and frames return preg_replace(array( '@<script[^>]*?.*?</script>@si', '@<object[^>]*?.*?</object>@si', '@<embed[^>]*?.*?</embed>@si', '@<applet[^>]*?.*?</applet>@si', '@</?((frameset)|(frame)|(iframe))@i' ), array(' ', ' ', ' ', ' ', ' '), $txt ); } |