From a5aaf75aeb4e860814aea35d767643b70b425c8f Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Thu, 7 Dec 2023 18:49:42 -0800 Subject: [PATCH] chore: fix encoding --- src/_data/weeklyArtistChart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_data/weeklyArtistChart.js b/src/_data/weeklyArtistChart.js index db634884..e3ca25dc 100644 --- a/src/_data/weeklyArtistChart.js +++ b/src/_data/weeklyArtistChart.js @@ -7,7 +7,7 @@ module.exports = async function () { const date = parseInt(chart['weeklyartistchart']['@attr']['to']) * 1000 let content = 'My top artists for the week: ' artists.forEach((artist, index) => { - const artistName = artist['name'].replace('&', '&'); + const artistName = artist['name'].replace('&', 'and'); content += `${artistName} @ ${artist['playcount']} play${ parseInt(artist['playcount']) > 1 ? 's' : '' }`