diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 2340cd94495..ddaf1b2d99d 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -753,7 +753,7 @@ class Sanitizer { } # Allow any attribute beginning with "data-" - if ( !preg_match( '/^data-/i', $attribute ) && !isset( $whitelist[$attribute] ) ) { + if ( !preg_match( '/^data-(?!ooui)/i', $attribute ) && !isset( $whitelist[$attribute] ) ) { continue; }