Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 58... Línea 58...
58
        }
58
        }
Línea 59... Línea 59...
59
 
59
 
60
 
60
 
-
 
61
    /// If enabled: run tidy over the entire string
-
 
62
        if (function_exists('tidy_repair_string')){
61
    /// If enabled: run tidy over the entire string
63
            $currentlocale = \core\locale::get_locale();
-
 
64
            try {
-
 
65
                $text = tidy_repair_string($text, $tidyoptions, 'utf8');
-
 
66
            } finally {
62
        if (function_exists('tidy_repair_string')){
67
                \core\locale::set_locale(LC_ALL, $currentlocale);
Línea 63... Línea 68...
63
            $text = tidy_repair_string($text, $tidyoptions, 'utf8');
68
            }
64
        }
69
        }
65
 
70
 
66
        return $text;
-