29.01.2009, 22:09
dass is ja ne normale function, oop in php5 sähe dann so aus
PHP Code:
abstract class Text {
public static function textToHtml($string ) {
$string = stripslashes($string);
$string = htmlentities($string);
$string = nl2br($string);
return $string;
}
}
echo Text::textToHtml($_POST['eingabe']);