OPPG-413: Use default tag list if no tags are set.

namespaces
Frank Ronny Larsen 2013-07-09 15:42:30 +02:00
parent d57f4cb109
commit ca1e84293a
1 changed files with 4 additions and 0 deletions

View File

@ -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.