Just use html.UnescapeString....

This commit is contained in:
Deluan 2016-03-08 20:54:50 -05:00
parent 60d4cb5d9f
commit 867ca0580c

View File

@ -10,6 +10,8 @@ import (
"strings"
"time"
"html"
"github.com/astaxie/beego"
"github.com/deluan/gosonic/domain"
"github.com/deluan/itl"
@ -191,8 +193,7 @@ func hasCoverArt(path string) bool {
}
func unescape(str string) string {
s := strings.Replace(str, "&", "&", -1)
return s
return html.UnescapeString(str)
}
func realArtistName(t *itl.Track) string {