mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-10 04:12:29 +03:00
Just use html.UnescapeString....
This commit is contained in:
parent
60d4cb5d9f
commit
867ca0580c
@ -10,6 +10,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"html"
|
||||||
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"github.com/deluan/gosonic/domain"
|
"github.com/deluan/gosonic/domain"
|
||||||
"github.com/deluan/itl"
|
"github.com/deluan/itl"
|
||||||
@ -191,8 +193,7 @@ func hasCoverArt(path string) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func unescape(str string) string {
|
func unescape(str string) string {
|
||||||
s := strings.Replace(str, "&", "&", -1)
|
return html.UnescapeString(str)
|
||||||
return s
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func realArtistName(t *itl.Track) string {
|
func realArtistName(t *itl.Track) string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user