summaryrefslogtreecommitdiffstats
path: root/system/libraries/Typography.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Typography.php')
-rw-r--r--system/libraries/Typography.php3
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);
}
/*