]> git.mjollnir.org Git - moodle.git/commitdiff
Don't strip backslahes from highlighted text
authormoodler <moodler>
Thu, 23 Sep 2004 07:41:37 +0000 (07:41 +0000)
committermoodler <moodler>
Thu, 23 Sep 2004 07:41:37 +0000 (07:41 +0000)
lib/weblib.php

index 156760f0c6814deb5a0326fc4483dddf4e7f8faa..2fb908523d8474c1bd5558109a3052fb45d26d8d 100644 (file)
@@ -1283,7 +1283,7 @@ function highlight($needle, $haystack, $case=0,
     }
     $haystack = str_replace(array_keys($final),$final,$haystack);
 
-    return stripslashes($haystack);
+    return $haystack;
 }
 
 /**
@@ -3246,4 +3246,4 @@ function print_speller_button () {
     echo '<input type="button" value="Check spelling" onclick="openSpellChecker();" />'."\n";
 }
 // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
-?>
\ No newline at end of file
+?>