From: ikawhero Date: Tue, 18 Jan 2005 06:57:59 +0000 (+0000) Subject: General removal of tags for XHTML compatibility. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c7444a36a59e3401b3f44da84bc41b3b398ea5bb;p=moodle.git General removal of tags for XHTML compatibility. Moved from the glossary filter as the filter may not be enabled. --- diff --git a/lib/weblib.php b/lib/weblib.php index 8c6646b1a2..9efbd48931 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1097,6 +1097,10 @@ function filter_text($text, $courseid=NULL) { } } + /// tags removed for XHTML compatibility + $text = str_replace('', '', $text); + $text = str_replace('', '', $text); + return $text; } diff --git a/mod/glossary/filter.php b/mod/glossary/filter.php index c583876b4c..59808fa072 100644 --- a/mod/glossary/filter.php +++ b/mod/glossary/filter.php @@ -108,9 +108,6 @@ } } } - /// tags removed for XHTML compatibility - $text = str_replace('', '', $text); - $text = str_replace('', '', $text); return $text; }