htmlentities("string");
htmlentities($stringvariable);
$text1 = "<h3>Schönes Wochenende! </h3>";
$text2 = "<h3>Sch&ouml;nes Wochenende! </h3>";
echo $text1;
htmlentities($text1);
echo $text2;
echo htmlentities($text2);