${leader0}
${titleH0}
${artistH0 ? `
${artistH0}
` : ''}
${creditBits0 ? `
${creditBits0}
` : ''}
${this.openInLinks(t)}
`;
}
const trackJson = JSON.stringify({
id,
url: t.url,
title: t.title || 'Untitled',
artist: t.artist || '',
cover: t.cover || '',
credit: t.credit || '',
license: t.license || '',
});
const titleH = this.escape(t.title || 'Untitled');
const artistH = this.escape(t.artist || '');
const urlH = this.escape(t.url);
// Visible owner/license line below the track.
const creditBits = [this.escape(t.credit || ''), this.escape(t.license || '')].filter(Boolean).join(' · ');
const dataAttr = trackJson
.replace(/&/g, '&').replace(/'/g, ''').replace(/" = anchor so the mini-player can scroll to this element.
return `