mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix double escape HTML
This commit is contained in:
parent
66baa9e069
commit
f81f0ef9d7
1 changed files with 1 additions and 3 deletions
|
@ -145,9 +145,7 @@ function updateNowPlayingInfo(context, state, serverId) {
|
||||||
if (item.Artists != null) {
|
if (item.Artists != null) {
|
||||||
if (item.ArtistItems != null) {
|
if (item.ArtistItems != null) {
|
||||||
for (const artist of item.ArtistItems) {
|
for (const artist of item.ArtistItems) {
|
||||||
const artistName = escapeHtml(artist.Name);
|
artistsSeries += `<a class="button-link emby-button" is="emby-linkbutton" href="#!/details?id=${artist.Id}&serverId=${nowPlayingServerId}">${escapeHtml(artist.Name)}</a>`;
|
||||||
const artistId = artist.Id;
|
|
||||||
artistsSeries += `<a class="button-link emby-button" is="emby-linkbutton" href="#!/details?id=${artistId}&serverId=${nowPlayingServerId}">${escapeHtml(artistName)}</a>`;
|
|
||||||
if (artist !== item.ArtistItems.slice(-1)[0]) {
|
if (artist !== item.ArtistItems.slice(-1)[0]) {
|
||||||
artistsSeries += ', ';
|
artistsSeries += ', ';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue