From ca1e84293a844fa583116fade40cc694d741d059 Mon Sep 17 00:00:00 2001 From: Frank Ronny Larsen Date: Tue, 9 Jul 2013 15:42:30 +0200 Subject: [PATCH] OPPG-413: Use default tag list if no tags are set. --- h5p.classes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/h5p.classes.php b/h5p.classes.php index d891b69..6dd6577 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1209,6 +1209,10 @@ class H5PContentValidator { $tags[] = 'li'; } } + else { + // Add defaults used in javascript. + $tags = array_merge($tags, array('strong', 'em', 'del', 'h2', 'h3', 'a', 'ul', 'ol', 'table', 'hr')); + } $allowedtags = implode('', array_map(array($this, 'bracketTags'), $tags)); // Strip invalid HTML tags.