diff --git a/h5p.classes.php b/h5p.classes.php index 5c321c8..016dfd3 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -4257,7 +4257,7 @@ class H5PContentValidator { return '<'; } - if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9\-]+)([^>]*)>?|()$%', $string, $matches)) { + if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9\-]+)\s*([^>]*)>?|()$%', $string, $matches)) { // Seriously malformed. return ''; }