Sonderzeichen ersetzen

Bitte Text in das Feld eintragen, Umlaute und Sonderzeichen werden durch HTML-Entities ersetzt.

Text eingeben

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if (!($senden == true)) { echo ""; echo ""; echo ""; echo ""; } if ($gesendet) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo "
"; echo "
"; echo "Anführungszeichen:"; echo "
  \" wird zu \\\""; echo "
  \" wird zu '"; echo "
  \" wird zu ""; echo "
"; echo "
"; echo "
"; echo "  \" bleibt \""; echo "
  \\\" wird zu \""; echo "
  ' wird zu \""; echo "
  " wird zu \""; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo "
"; echo ""; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo "
"; echo "
"; echo "
"; function umwandeln($text, $quot) { $replace = array ( "" => "ä", "" => "ö", "" => "ü", "" => "Ä", "" => "Ö", "" => "Ü", "" => "ß", "" => "§", "" => "©", "" => "®", "" => "°" ); $text = nl2br($text); $text = strtr($text, $replace); switch ($quot) { case 2: $text = strtr($text, array('"' => "\\\"")); break; case 3: $text = strtr($text, array('"' => "'")); break; case 4: $text = strtr($text, array('"' => """)); break; case 5: $text = strtr($text, array("\\\"" => '"')); break; case 6: $text = strtr($text, array("'" => "\"")); break; case 7: $text = strtr($text, array(""" => '"')); break; } // keine HTML-Tags erlaubt, auer p und br //$text = strip_tags($text, '


'); // HTML-Tags maskieren //$text = htmlspecialchars($text, ENT_QUOTES); return $text; } function keephtml($text) { $replace = array ( "<" => "&lt;", ">" => "&gt;", '"' => "&quot;" ); return strtr($text, $replace); } ?>