Skip to content

Commit

Permalink
Removed text cleanup from print_textarea(), text from students must b…
Browse files Browse the repository at this point in the history
…e cleaned before display - not here, because it interferes with resources, books etc.
  • Loading branch information
skodak committed Jul 4, 2005
1 parent 3fa1aba commit e940f40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/weblib.php
Expand Up @@ -2973,9 +2973,6 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v

if ($usehtmleditor) {

// cleanup bad html that may have made it to the db
$value = clean_text($value);

if (!empty($courseid) and isteacher($courseid)) {
echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'/lib/editor/htmlarea.php?id='. $courseid .'"></script>'."\n" : '';
} else {
Expand Down

0 comments on commit e940f40

Please sign in to comment.