From e320bc8ae23d3fab537c620d980a2aa0cb8919a9 Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Thu, 11 Sep 2008 18:11:31 +0000 Subject: --- system/libraries/Typography.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system/libraries/Typography.php') diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php index bc3baeb5d..84e6a046f 100644 --- a/system/libraries/Typography.php +++ b/system/libraries/Typography.php @@ -74,8 +74,7 @@ class CI_Typography { */ if ($this->allow_js_event_handlers == FALSE) { - $event_handlers = array('[^a-z_\-]on\w*','xmlns'); - $str = preg_replace("#<([^><]+?)(".implode('|', $event_handlers).")(\s*=\s*[^><]*)([><]*)#i", "<\\1\\4", $str); + $str = preg_replace("#<([^><]+?)([^a-z_\-]on\w*|xmlns)(\s*=\s*[^><]*)([><]*)#i", "<\\1\\4", $str); } /* -- cgit v1.2.3-24-g4f1b