From: moodler Date: Fri, 24 Jan 2003 08:41:18 +0000 (+0000) Subject: Remove the ampersand thing ... it was actually a Mozilla display bug. :-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=03f06a1412d8c420d48c2882465522c26d35bd87;p=moodle.git Remove the ampersand thing ... it was actually a Mozilla display bug. :-) --- diff --git a/lib/weblib.php b/lib/weblib.php index 24665703c0..93fef55365 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -532,9 +532,6 @@ function text_to_html($text, $smiley=true, $para=true) { $text = eregi_replace("([\n\r])<", " <", $text); $text = eregi_replace(">([\n\r])", "> ", $text); -/// Replace ampersands - $text = eregi_replace("&", "&", $text); - /// Make lone URLs into links. eg http://moodle.com/ $text = eregi_replace("([\n\r ([])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "\\1\\2://\\3\\4", $text);