BUGFIX: The strikethrough was removed when an H5P was saved

namespaces
Svein-Tore Griff With 2013-11-08 18:46:47 +01:00
parent 1a6ef6f0fa
commit 2454bcfa2a
1 changed files with 3 additions and 0 deletions

View File

@ -1225,6 +1225,9 @@ class H5PContentValidator {
if (in_array('ul', $tags) || in_array('ol', $tags) && ! in_array('li', $tags)) {
$tags[] = 'li';
}
if (in_array('del', $tags) || in_array('strike', $tags) && ! in_array('s', $tags)) {
$tags[] = 's';
}
// Strip invalid HTML tags.
$text = $this->filter_xss($text, $tags);
}