https://www.php-resource.de/forum/php-developer-forum/88548-funktion-problem-mit-htmlentities