mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-10276 Text cleaning trouble
This commit is contained in:
parent
7308cb6949
commit
a33c44c4b9
1 changed files with 4 additions and 0 deletions
|
@ -1843,6 +1843,10 @@ function clean_text($text, $format=FORMAT_MOODLE) {
|
||||||
|
|
||||||
/// Clean up embedded scripts and , using kses
|
/// Clean up embedded scripts and , using kses
|
||||||
$text = cleanAttributes($text);
|
$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
|
/// Remove potential script events - some extra protection for undiscovered bugs in our code
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue