From c7444a36a59e3401b3f44da84bc41b3b398ea5bb Mon Sep 17 00:00:00 2001 From: ikawhero Date: Tue, 18 Jan 2005 06:57:59 +0000 Subject: [PATCH] General removal of tags for XHTML compatibility. Moved from the glossary filter as the filter may not be enabled. --- lib/weblib.php | 4 ++++ mod/glossary/filter.php | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.39.5