Open digiswiss opened 9 years ago
decodeURI can be added to media.title, media.artist in jplayer.playlist.js, line #275
listItem += "<a href='javascript:;' class='" + this.options.playlistOptions.itemClass + "' tabindex='0'>" + decodeURI(media.title) + (media.artist ? " <span class='jp-artist'>by " + decodeURI(media.artist) + "</span>" : "") + "</a>";
With decodeURI it is possible to e.g. use php rawurlencode on title & artist, to make sure no special chars cause errors whilst setting up the playlist.
There is no harm to any string not containing any special chars.
decodeURI can be added to media.title, media.artist in jplayer.playlist.js, line #275
listItem += "<a href='javascript:;' class='" + this.options.playlistOptions.itemClass + "' tabindex='0'>" + decodeURI(media.title) + (media.artist ? " <span class='jp-artist'>by " + decodeURI(media.artist) + "</span>" : "") + "</a>";
With decodeURI it is possible to e.g. use php rawurlencode on title & artist, to make sure no special chars cause errors whilst setting up the playlist.
There is no harm to any string not containing any special chars.