| @@ 325-330 (lines=6) @@ | ||
| 322 | return $texte; |
|
| 323 | } |
|
| 324 | static $trans = array(); |
|
| 325 | if (!$trans) { |
|
| 326 | load_charset('html'); |
|
| 327 | foreach ($GLOBALS['CHARSET']['html'] as $key => $val) { |
|
| 328 | $trans["&$key;"] = $val; |
|
| 329 | } |
|
| 330 | } |
|
| 331 | ||
| 332 | if ($secure) { |
|
| 333 | return str_replace(array_keys($trans), array_values($trans), $texte); |
|
| @@ 354-360 (lines=7) @@ | ||
| 351 | **/ |
|
| 352 | function mathml2unicode($texte) { |
|
| 353 | static $trans; |
|
| 354 | if (!$trans) { |
|
| 355 | load_charset('mathml'); |
|
| 356 | ||
| 357 | foreach ($GLOBALS['CHARSET']['mathml'] as $key => $val) { |
|
| 358 | $trans["&$key;"] = $val; |
|
| 359 | } |
|
| 360 | } |
|
| 361 | ||
| 362 | return str_replace(array_keys($trans), array_values($trans), $texte); |
|
| 363 | } |
|