mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Added a few more allowed HTML tags in plain text files. <dl> <h1><h2><h3> <hr>
This commit is contained in:
parent
dfb6e4ac3e
commit
8dcea3963a
@ -266,7 +266,7 @@ function cleantext($text) {
|
||||
// Given raw text (eg typed in by a user), this function cleans it up
|
||||
// and removes any nasty tags that could mess up Moodle pages.
|
||||
|
||||
return strip_tags($text, '<b><i><u><font><ol><ul><li>');
|
||||
return strip_tags($text, '<b><i><u><font><ol><ul><dl><li><dt><dd><h1><h2><h3><hr>');
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user