//$html = mb_convert_encoding( $html, 'HTML-ENTITIES', 'UTF-8' );
$dom = new \DOMDocument('1.0', 'UTF-8');
libxml_use_internal_errors( true );
$dom->loadHTML('<?xml encoding="UTF-8">' . $html);
$dom->preserveWhiteSpace = false;
libxml_clear_errors();
$output = $dom->saveHTML();
var_dump( html_entity_decode($output,ENT_QUOTES,"UTF-8") );