BUGFIX: The strikethrough was removed when an H5P was saved
parent
1a6ef6f0fa
commit
2454bcfa2a
|
@ -1225,6 +1225,9 @@ class H5PContentValidator {
|
||||||
if (in_array('ul', $tags) || in_array('ol', $tags) && ! in_array('li', $tags)) {
|
if (in_array('ul', $tags) || in_array('ol', $tags) && ! in_array('li', $tags)) {
|
||||||
$tags[] = 'li';
|
$tags[] = 'li';
|
||||||
}
|
}
|
||||||
|
if (in_array('del', $tags) || in_array('strike', $tags) && ! in_array('s', $tags)) {
|
||||||
|
$tags[] = 's';
|
||||||
|
}
|
||||||
// Strip invalid HTML tags.
|
// Strip invalid HTML tags.
|
||||||
$text = $this->filter_xss($text, $tags);
|
$text = $this->filter_xss($text, $tags);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue