diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-11 20:11:31 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-11 20:11:31 +0200 |
commit | e320bc8ae23d3fab537c620d980a2aa0cb8919a9 (patch) | |
tree | fc6fb37d2a4a1b1ce07f33650fd5dbda42b9b6ec | |
parent | ab504b85c56cf10b6c840ae85080d4adc117a81f (diff) |
-rw-r--r-- | system/libraries/Typography.php | 3 |
1 files changed, 1 insertions, 2 deletions
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); } /* |