]> git.mjollnir.org Git - moodle.git/commitdiff
Added a few more allowed HTML tags in plain text files. <dl> <h1><h2><h3> <hr>
authormartin <martin>
Fri, 27 Sep 2002 14:48:25 +0000 (14:48 +0000)
committermartin <martin>
Fri, 27 Sep 2002 14:48:25 +0000 (14:48 +0000)
lib/weblib.php

index b460e0aab72f728be45c04699b57f9acde3092f4..5e99405f550639963565bb64d33066d7d3d811e0 100644 (file)
@@ -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>');
 }