mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-10276 Text cleaning trouble
This commit is contained in:
parent
7308cb6949
commit
a33c44c4b9
@ -1843,6 +1843,10 @@ function clean_text($text, $format=FORMAT_MOODLE) {
|
||||
|
||||
/// Clean up embedded scripts and , using kses
|
||||
$text = cleanAttributes($text);
|
||||
|
||||
/// Again remove tags that are not allowed
|
||||
$text = strip_tags($text, $ALLOWED_TAGS);
|
||||
|
||||
}
|
||||
|
||||
/// Remove potential script events - some extra protection for undiscovered bugs in our code
|
||||
|
Loading…
x
Reference in New Issue
Block a user