Version 1.1

This commit is contained in:
mmk2410 2015-02-24 23:05:30 +01:00
parent e1bbbfb117
commit 016eecebd8
3 changed files with 57 additions and 8 deletions

15
res/umlautconverter.php Normal file
View file

@ -0,0 +1,15 @@
<?php
class UmlautConverter
{
function convert($text)
{
$output = str_replace("ä","&auml;",$text);
$output = str_replace("Ä","&Auml;",$output);
$output = str_replace("ö","&ouml;",$output);
$output = str_replace("Ö","&Ouml;",$output);
$output = str_replace("ü","&uuml;",$output);
$output = str_replace("Ü","&Uuml;",$output);
$output = str_replace("ß","&szlig;",$output);
return $output;
}
}