fork(15) download
  1. <?php
  2.  
  3. $text = "äöü &auml; &ouml; &uuml; &#223;";
  4. var_dump(mb_convert_encoding($text, 'UTF-8', 'HTML-ENTITIES'));
  5.  
  6. $text = "äöü &auml; &ouml; &uuml; &#223;";
  7. var_dump(html_entity_decode($text, ENT_COMPAT | ENT_HTML401, 'UTF-8'));
  8.  
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
string(24) "äöü ä ö ü ß"
string(18) "äöü ä ö ü ß"