diff --git a/allstarr/wwwroot/index.html b/allstarr/wwwroot/index.html index 24f9a90..70c6f14 100644 --- a/allstarr/wwwroot/index.html +++ b/allstarr/wwwroot/index.html @@ -1583,7 +1583,12 @@ } else if (t.isLocal === false) { statusBadge = 'External'; // Add manual map button for external tracks - mapButton = ``; + // Use JSON.stringify to properly escape strings for JavaScript + const escapedName = JSON.stringify(name); + const escapedTitle = JSON.stringify(t.title); + const escapedArtist = JSON.stringify(t.artists[0] || ''); + const escapedSpotifyId = JSON.stringify(t.spotifyId); + mapButton = ``; } return `