Ver originalhtmlentities($foo,ENT_QUOTES,'ISO-8859-1');
Ver originalecho htmlspecialchars_decode($foo);