Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a few more allowed HTML tags in plain text files. <dl> <h1><h2>…

…<h3> <hr>
  • Loading branch information...
commit 8dcea3963abdd87c7a12378f33b6eb9a22890354 1 parent dfb6e4a
martin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/weblib.php
2  lib/weblib.php
@@ -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>');
Please sign in to comment.
Something went wrong with that request. Please try again.