diff --git a/src/modules/music.js b/src/modules/music.js index 9f5dd8f..0e6ad77 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -398,11 +398,11 @@ async function youtubeSearch(msg, str) { const selection = items.map((item) => ({ value: "https://youtu.be/" + item.id.videoId, key: item.id.videoId, - display: `${item.snippet.title.substring(0, 99)}${ - item.snippet.title.length > 99 ? "…" : "" + display: `${parseHtmlEntities(item.snippet.title).substring(0, 99)}${ + parseHtmlEntities(item.snippet.title).length > 99 ? "…" : "" }`, - description: `from ${item.snippet.channelTitle.substring(0, 95)}${ - item.snippet.channelTitle.length > 95 ? "…" : "" + description: `from ${parseHtmlEntities(item.snippet.channelTitle).substring(0, 95)}${ + parseHtmlEntities(item.snippet.channelTitle).length > 95 ? "…" : "" }`, }));