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