]> git.mjollnir.org Git - moodle.git/commitdiff
Now the tokeniser is using the new textlib->entities_to_utf8()
authorstronk7 <stronk7>
Wed, 13 Jun 2007 23:22:57 +0000 (23:22 +0000)
committerstronk7 <stronk7>
Wed, 13 Jun 2007 23:22:57 +0000 (23:22 +0000)
own function (PHP4 and PHP compatible)

Merged from MOODLE_18_STABLE

lib/tokeniserlib.php

index 737875b126b2433d0a93b79da7ef8cdc1e6367f1..4cf3d4c40e8c681f960aa8859382904dc5da371b 100644 (file)
@@ -312,7 +312,7 @@ function tokenise_simplify($text, $overlap_cjk, $join_numbers) {
     $textlib = textlib_get_instance();
 
     // Decode entities to UTF-8
-    $text = html_entity_decode($text, ENT_QUOTES, 'UTF-8');
+    $text = $textlib->entities_to_utf8($text, true);
 
     // Lowercase
     $text = $textlib->strtolower($text);