decodeHtmlEntity function, restored mpd.php tpl